Hi JM,
Thanks for you post and would you please try the following code:
Controller Side:
public ActionResult UseDraggableMarkers()
{
Map map = new Map ("Map1", System.Web.UI.WebControls.Unit(100,System.Web.UI.WebControls.UnitType.Percentage), 510);
map.MapBackground.BackgroundBrush = new GeoSolidBrush(GeoColor.FromHtml("#E5E3DF"));
map.CurrentExtent = new RectangleShape(-13939426.6371, 6701997.4056, -7812401.86, 2626987.386962);
map.MapUnit = GeographyUnit.Meter;
SimpleMarkerOverlay markerOverlay = new SimpleMarkerOverlay("MarkerOverlay");
markerOverlay.DragMode = MarkerDragMode.Drag;
markerOverlay.OnClientMarkerDragged = "onClientMarkerDragged";
// .....
}
View Side:
function onClientMarkerDragged(e) {
var x = e.worldXY.lon;
var y = e.worldXY.lat;
var overlayId = e.overlayId;
var markerId = e.markerId;
var params = { lon: x, lat: y, id: markerId };
Map1.ajaxCallAction('@ViewContext.RouteData.Values["Controller"].ToString()', 'UpdateDragableMarker', params);
}
Hope it helps.
Johnny