ThinkGeo.com    |     Documentation    |     Premium Support

SimpleMarkerOverlay Events other than Click?

Greetings,


I'm using a SimpleMarkerOverlay with its DragMode property set to MarkerDragMode.Drag.  I've used the Click event in the past and this works fine.  However, I need an event to be raised with a "mouseUp" after the user has finished dragging the marker.  I need this event so that I can capture the lat and long of the marker after the user finishes dragging.


Is there an easy way to do this?  


Thanks for all your help,


 


Joe



Joe, 
  
 I’m afraid we cannot implement it easily for now as there is no event raised after finishing draging the marker. We can add one in the future version. So can you let me know more about your scenario, like you are looking for a client side or a server side event? Your scenario will help us decide what kind of API we will add. 
  
 Thanks, 
  
 Ben. 


Hi Ben,



Thanks for the reply.  My scenario is that I wanted to plot markers from a database and then if a user moved the marker, I wanted to take the new latitude and longitude and save it to the database.  I think a server side event would probably be the best what I wanted to do.  



Is there any other class other than a MarkerOverlay that would allow a user to update a point's position?  



Thanks for your help,





Joe



Joseph, 
  
 Thanks for letting me know. I’ve reported your scenario to the development team and I think we will add a server side event (MarkerDragged )on the future version. 
  
 MarkerOverlay is the best way to update a point’s position. You can also implement it by setting the map to some “Updating” mode, select a marker and click on the map to set its new position. By raising up the Click event, you can update the new position on server side.  That’s not a very good way though, I prefer to wait for the MarkerDragged event. 
  
 Thanks, 
  
 Ben