Google Maps Api V3 Geolocation Not Working In Google Chrome
I'm using Google Maps API v3 Geolocation to get the users actual location. I found this post from Google Developers: https://developers.google.com/maps/documentation/javascript/exa
Solution 1:
I have found this
It appears this is a security restriction for the file protocol. Looks like you are going to need to host it locally from a server.
I've tested your code with a local server and it just works fine. Hope I could help.
Solution 2:
Try to use HTML5 geolocation APIinstead of Google Maps' one for the browsers you are having problems with.
You can find the reference here
Post a Comment for "Google Maps Api V3 Geolocation Not Working In Google Chrome"