public void OnZoom(string mapid, string zoom) { if (ZoomChange != null) { MapEventArgs mapEvent = new MapEventArgs(); mapEvent.MapId = mapid; mapEvent.Zoom = Convert.ToInt32(zoom); ZoomChange(null, mapEvent); } }
public void OnMapClick(string mapid, string lat, string lng) { if (MapClick != null) { MapEventArgs mapEvent = new MapEventArgs(); mapEvent.MapId = mapid; mapEvent.Point = new LatLng(Convert.ToDouble(lat), Convert.ToDouble(lng)); MapViewChange(null, mapEvent); } }
public void OnShapeClick(String shapeid,String mapid) { if (ShapeClick != null) { MapEventArgs mapEvent = new MapEventArgs(); mapEvent.MapId = mapid; mapEvent.ShapeId = shapeid; ShapeClick(null, mapEvent); } }
void mapEvents_ZoomChange(object sender, MapEventArgs e) { if (e.MapId == mapId) { //Set new zoom zoom = e.Zoom; //fire map zoom if (OnZoom != null) { OnZoom(this, null); } } }
void mapEvents_ShapeClick(object sender, MapEventArgs e) { if (e.MapId == mapId) { //fire map event with shape if (OnShapeClick != null) { OnShapeClick(mapShapeList[e.ShapeId], null); } } }
void mapEvents_MapViewChange(object sender, MapEventArgs e) { if (e.MapId == mapId) { //Maped moved set new center center = e.Point; //fire map move if (OnViewChange != null) { OnViewChange(this, null); } } }
void mapEvents_MapClick(object sender, MapEventArgs e) { if (e.MapId == mapId) { if (OnClick != null) { OnClick(this, null); } } }