Exemple #1
0
 public Marker(LatLng point, String title, String iconSource, IMapServiceJS mapServiceJS):base(mapServiceJS)
 {
     this.point = point;
     this.title = title;
     this.iconSource = iconSource;
     Redraw();
 }
Exemple #2
0
 public Marker(LatLng point, String title, String iconSource, IMapServiceJS mapServiceJS) : base(mapServiceJS)
 {
     this.point      = point;
     this.title      = title;
     this.iconSource = iconSource;
     Redraw();
 }
Exemple #3
0
 public PolyLine(LatLng[] points, Color color, int strokeWeight, double strokeOpacity, IMapServiceJS mapServiceJS):base(mapServiceJS)
 {
     this.strokeColor = color;
     this.strokeWeight = strokeWeight;
     this.strokeOpacity = strokeOpacity;
     this.points = points;
     Redraw();
 }
Exemple #4
0
 public Polygon(LatLng[] points, Color strokeColor, int strokeWeight, double strokeOpacity, Color fillColor, double fillOpacity,IMapServiceJS mapServiceJS):base(mapServiceJS)
 {
     this.strokeColor = Utility.ColorToRGB(strokeColor);
     this.strokeWeight = strokeWeight;
     this.strokeOpacity = strokeOpacity;
     this.fillColor = Utility.ColorToRGB(fillColor);
     this.fillOpacity = fillOpacity;
     this.points = points;
     Redraw();
 }
Exemple #5
0
        public Map(Rectangle control, IMapServiceJS mapServiceJS)
        {
            if (mapServiceJS == null)
            {
                throw new Exception("mapServiceJS cannot be null");
            }
            this.mapServiceJS = mapServiceJS;

            mapId = "map_" + mapIdCount.ToString("0000");
            mapIdCount++;
            mapShapeList = new MapShapeCollection();
            mapEvents.MapViewChange += new EventHandler<MapEventArgs>(mapEvents_MapViewChange);
            mapEvents.MapClick += new EventHandler<MapEventArgs>(mapEvents_MapClick);
            mapEvents.ZoomChange += new EventHandler<MapEventArgs>(mapEvents_ZoomChange);
            mapEvents.ShapeClick += new EventHandler<MapEventArgs>(mapEvents_ShapeClick);
            InitMapOverlay(control);

            Redraw();
        }
Exemple #6
0
        public Map(Rectangle control, IMapServiceJS mapServiceJS)
        {
            if (mapServiceJS == null)
            {
                throw new Exception("mapServiceJS cannot be null");
            }
            this.mapServiceJS = mapServiceJS;

            mapId = "map_" + mapIdCount.ToString("0000");
            mapIdCount++;
            mapShapeList             = new MapShapeCollection();
            mapEvents.MapViewChange += new EventHandler <MapEventArgs>(mapEvents_MapViewChange);
            mapEvents.MapClick      += new EventHandler <MapEventArgs>(mapEvents_MapClick);
            mapEvents.ZoomChange    += new EventHandler <MapEventArgs>(mapEvents_ZoomChange);
            mapEvents.ShapeClick    += new EventHandler <MapEventArgs>(mapEvents_ShapeClick);
            InitMapOverlay(control);

            Redraw();
        }
Exemple #7
0
 public PolyLine(LatLng[] points, Color color, int strokeWeight, double strokeOpacity, IMapServiceJS mapServiceJS) : base(mapServiceJS)
 {
     this.strokeColor   = color;
     this.strokeWeight  = strokeWeight;
     this.strokeOpacity = strokeOpacity;
     this.points        = points;
     Redraw();
 }
Exemple #8
0
 public MapShapes(IMapServiceJS mapServiceJS)
 {
     id = "shape_" + shapeIDCount.ToString("0000");
     shapeIDCount++;
     this.mapServiceJS = mapServiceJS;
 }
Exemple #9
0
 public Polygon(LatLng[] points, Color strokeColor, int strokeWeight, double strokeOpacity, Color fillColor, double fillOpacity, IMapServiceJS mapServiceJS) : base(mapServiceJS)
 {
     this.strokeColor   = Utility.ColorToRGB(strokeColor);
     this.strokeWeight  = strokeWeight;
     this.strokeOpacity = strokeOpacity;
     this.fillColor     = Utility.ColorToRGB(fillColor);
     this.fillOpacity   = fillOpacity;
     this.points        = points;
     Redraw();
 }