예제 #1
0
 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);
     }
 }
예제 #2
0
 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);
     }
 }
예제 #3
0
 public void OnShapeClick(String shapeid,String mapid)
 {
     if (ShapeClick != null)
     {
         MapEventArgs mapEvent = new MapEventArgs();
         mapEvent.MapId = mapid;
         mapEvent.ShapeId = shapeid;
         ShapeClick(null, mapEvent);
     }
 }
예제 #4
0
 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);
         }
     }
 }
예제 #5
0
 void mapEvents_ShapeClick(object sender, MapEventArgs e)
 {
     if (e.MapId == mapId) {
         //fire map event with shape
         if (OnShapeClick != null)
         {
             OnShapeClick(mapShapeList[e.ShapeId], null);
         }
     }
 }
예제 #6
0
 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);
         }
     }
 }
예제 #7
0
 void mapEvents_MapClick(object sender, MapEventArgs e)
 {
     if (e.MapId == mapId)
     {
         if (OnClick != null)
         {
             OnClick(this, null);
         }
     }
 }