I have to change the position of a marker on Google map from a javascript function. How can I achieve that?
You can use setPosition function of the marker class
function changeMarkerPosition(marker) { var latlng = new google.maps.LatLng(-24.397, 140.644); marker.setPosition(latlng); }
1.4m articles
1.4m replys
5 comments
57.0k users