Recently I noticed that geolocation doesn't work on Firefox when using Google Maps API. After googleing for a while, I tried showing my current location (from a laptop, not from mobile) on Google Maps, but it didn't work there as well.
Here's what I have in my geo.wifi.uri in the about:config Firefox's tab:
https://www.googleapis.com/geolocation/v1/geolocate?key=%GOOGLE_API_KEY%
Can anyone help me?
I faced the same problem, and from what I found, we can't use Google's Geolocation unless we get our own API key. If you don't mind, you can use Mozilla's Geolocation, but the results will be different from Google's.
You can change https://www.googleapis.com/geolocation/v1/geolocate?key=%GOOGLE_API_KEY% to https://location.services.mozilla.com/v1/geolocate?key=%MOZILLA_API_KEY%
Source
Related
hello im hosting Google maps API on my localhost for now, and it appears fine in Chrome and the mobile phone version. (both safari and chrome iPhone versions).
My problem is Google maps doesn't show when it comes to my Mac version of Safari. the Grey(background) shows and the cursors change to the Google maps cursor, but the map and content doesn't display. what can be the problem?
Here is a link to the map. as you can see the map displays in Chrome but not in safari.(at least not for me).
http://jsbin.com/cahicomame/1/edit?html,output
there is no guarantee that navigator.geolocation.getCurrentPosition will return a result. The user may deny the permission or the geolocation-service may not be able to locate the user.
You better initialize the map with a default-center (center is required to display the map).
I find the solution after 1 hours , it's because my website (developpement) was in http and not https :) Safari will ask your localisation.
I am sending directions in emails with this syntax
https://maps.google.com/maps?saddr=58.2835809,12.269723200000044&daddr=58.03126090000001,12.803917500000011+to:58.03126090000001,12.803917500000011+to:58.2583346,12.95071710000002+to:58.2835809,12.269723200000044
This has stopped to work in Android and iPhone but still works in desktop browsers. I have tried to find a solution on the web but failed to do so. Any ideas?
That is the "classic" Google Maps directions, it was never documented (by Google). You can use the documented Embed API:
https://www.google.com/maps/embed/v1/directions
?key=YOUR_API_KEY
&origin=58.2835809,12.269723200000044
&destination=58.03126090000001,12.80391750000001
&waypoints=58.03126090000001,12.803917500000011|58.2583346,12.95071710000002|58.2835809,12.269723200000044
working example
I solved it with this syntax:
https://www.google.com/maps/dir/58.2835809,12.269723200000044/58.03126090000001,12.803917500000011/58.2583346,12.95071710000002/58.2835809,12.269723200000044/am=t
I made this static map image-link to put on our website. The map works in Chrome on Mac OS 10.6.8 but it doesn't show on iOS7.1. Ive tried both on iPhone 4s and iPad2. The only thing I get on iOS7 is a blank square.
If I paste the link in the Safari adress-field on my iPad I can see the map.
here's the link:
http://maps.googleapis.com/maps/api/staticmap?center=62.388298,17.316515&zoom=15&size=300x300&scale=2&markers=color:red%7C62.388298,17.316515&maptype=roadmap&sensor=false&key=
Since I havent managed to figure this out myself Ive currently made a clickable link for iOS/Android users but Im not sure if Im supposed to do that..
thx
Why not using the maps api v3? I get the follwing error in chrome on windows:
The Google Maps API server rejected your request. This IP, site or mobile application is not authorized to use this API key.
On v3 of the maps api you donĀ“t need a key.
Eventually this solves your problem.
I have tag used to load the google map in my web site. All browser load the google map Successfully , Except google chrome Version 30.0.1599.69 . how to fix this issue in Google chrome 30.0.1599.69 ? give me suggestion .
Sample code:
I'm a Google trusted photographer and this issue is a big problem for my clients.
before the issue was solved, you could use the maps api. I did this little tool : http://visitevirtuelle.odoxo.fr/bug-de-chrome-30-et-des-iframe-de-google-maps/ to replace the google iframe by a modified one, it works for Streetview and business photo (and really simple maps).
It could help.
I want to get the same results that Google Chrome get on his Network functionality Network Google Chrome. I found this, but i'm not sure if it works and how to use it. Basically i want to use that information to made a google chrome extension.
Any idea?
I think the chrome.devtools.network API would be better suited for your use.