Google Maps Javascript GeoLocation - Not working on Chrome Google Maps Javascript GeoLocation - Not working on Chrome google-chrome google-chrome

Google Maps Javascript GeoLocation - Not working on Chrome


Chrome and safari (webkit browsers) does not allow Geolocation API for files that are in file system.

just create a web application and try to access it with localhost like

http://localhost/geoGoogle.html


just use HTTPS instead of HTTP and it will work