Hi I have the code below to enable my markers to be draggable. My
question is how do I update my
document.getElementById('propertyLat').value &
document.getElementById('propertyLon').value once the marker has been
moved??
function placeMarkerAtPoint(point)
{
document.getElementById('propertyLat').value = point.lat();
document.getElementById('propertyLon').value = point.lng();
var center = new GLatLng(point.lat(), point.lng());
map.setCenter(center, 15);
var marker = new GMarker(center, {draggable: true});
GEvent.addListener(marker, "dragstart", function() {
map.closeInfoWindow();
});
GEvent.addListener(marker, "dragend", function() {
marker.openInfoWindowHtml("Just bouncing along...");
});
map.addOverlay(marker);
}
--
You received this message because you are subscribed to the Google Groups
"Google Maps API" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/google-maps-api?hl=en.