Indiviual marker events GoogleMap Control 4.0.1

May 4, 2009 at 12:30 PM



I have downloaded the new version of the GoogleMap Control V4.0.1. My question is about the events from the markers that are moved to the GoogleMap.MarkerEvents. I can set an event that for all the markers at once. But I like to set an indiviual event for each marker I add to the map (like in the GoogleMap Control 3.5) to fire a javacript function with an argument. Something like this:

For marker 1: Marker.OnClientDragEnd = "MarkerMoved(‘DOR0121’)";

For marker 2: Marker.OnClientDragEnd = "MarkerMoved(‘HLM4265’)";

For marker 3: ……


Is there a chance to set events directly to a marker?



Jun 21, 2010 at 2:03 PM
Edited Jun 21, 2010 at 2:05 PM
i'm looking for the same i guess....
I try to catch the event, when a user picks a marker and sets it to another position on the map. the marker should be updatet (such as adress, longitude / latitude properties etc.). is there any event which supports that?
an other problem which i got is the longitude / latitude properties. i create my markers with the constructor:

CustomerMarker = new GoogleMarker(CustomerAdr);

but with this creation i don't get the coordinates properties filled, which i really need.

anybody knows a way to get the coordinates at creating a marker?