By HMED on Thursday, 03 November 2016
Posted in General
Replies 8
Likes 0
Views 161
Votes 0
Hello,

On our website (ES2) maps are shown only when we click edit (profile for example), when we click on public profiles the map is not shown. We activated all maps api on google console.

We see the error on firebugs :

GET http://maps.googleapis.com/maps/api/staticmap [HTTP/1.1 403 Forbidden 101 ms]


When we remove the API key in General settings/location maps dont work at all (logic), when we add it maps works on profile edit only, i believe this API key is assigned to edit pages and not other pages like profiles.

Can you please check your code ?
Hi Jan,

Can you try to run the following url with your gmaps API key and see what is the response? I've checked the source code locally and all the static maps on the site will use gmaps static api with the key provided on the backend settings.
https://maps.googleapis.com/maps/api/staticmap?key=YOUR_API_KEY&size=400x200&sensor=true&zoom=15¢er=52.3905689,13.0644729&markers=52.3905689,13.0644729&language=en
·
Thursday, 03 November 2016 18:04
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi Jan,

Can you also validate if the steps that you use to create the api key on google console is the same as below?

- Go to this page -> https://console.developers.google.com/iam-admin/projects
- Create project and check my video here : http://screencast.com/t/xnfoJH8vx
- This is the page for activate the APIs key -> https://developers.google.com/maps/documentation/javascript/get-api-key
·
Thursday, 03 November 2016 18:32
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello, this url is returning a location image,
On our the dev website (es2) some times it show the map and some times no.
please check the url in first post (in hidden info)
·
Thursday, 03 November 2016 19:27
·
0 Likes
·
0 Votes
·
0 Comments
·
Hm, I just logged in into the site and play around with the location/maps on the site and it seems like the maps is showing up correctly no matter how many times I refresh the page. One reason that I can think of is perhaps there are some latency between the site and google to activate the your api key in their system hence causing the unstable behavior previously.

Perhaps you can try again to play around with the maps for another day and see if the issue still persist?
·
Thursday, 03 November 2016 19:37
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi,

It seems working on stream (location) but not on profiles
check some profiles please.
·
Thursday, 03 November 2016 20:11
·
0 Likes
·
0 Votes
·
0 Comments
·
Jan,

Sorry but I am a little lost here. When I tried to access the page at http://dev.bimfriends.com/307-admin , the map seems to appear as you can see here, http://take.ms/KacOx

Anyway, if you still have this issue, can you please edit your first post and provide us with:

1. FTP access
2. Access to your Google developer console.
·
Friday, 04 November 2016 16:38
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post