javascript geolocation on android doesn't work
问题 I am developing a website that relies on pulling the geolocation data of a mobile user. I am doing it the typical way via: function initialize() { if(window.google && google.gears) { var geo = google.gears.factory.create('beta.geolocation'); geo.getCurrentPosition(useLocation, errorOnLocate); } else if(navigator.geolocation) { navigator.geolocation.getCurrentPosition(useLocation, errorOnLocate); } else { alert("no geo found"); } } function errorOnLocate(message) { alert(message); zoomTo(-34