HTML5 geolocation watchposition is reloading full map not only position
问题 I have a code but the problem is the watchposition() is relaoding the full map,not only the position,what i want is when i zoom even if position changes it will just change the marker to that position <p id="demo">Click the button to get your position:</p> <button onclick="getLocation()">Try It</button> <div id="mapholder"></div> <script src="http://maps.google.com/maps/api/js?sensor=false"></script> <script> var x = document.getElementById("demo"); function getLocation() { if (navigator