protected void lbShapesPolyline_Click(object sender, EventArgs e) { Simplovation.Web.Maps.VE.LatLong[] points = new Simplovation.Web.Maps.VE.LatLong[4]; points[0] = new Simplovation.Web.Maps.VE.LatLong(Map1.Latitude - 4, Map1.Longitude); points[1] = new Simplovation.Web.Maps.VE.LatLong(Map1.Latitude - 8, Map1.Longitude); points[2] = new Simplovation.Web.Maps.VE.LatLong(Map1.Latitude - 8, Map1.Longitude + 7); points[3] = new Simplovation.Web.Maps.VE.LatLong(Map1.Latitude - 4, Map1.Longitude + 4); Simplovation.Web.Maps.VE.Shape s = new Simplovation.Web.Maps.VE.Shape(Simplovation.Web.Maps.VE.ShapeType.Polyline, points); Map1.AddShape(s); }
protected void lbShapesPolygon_Click(object sender, EventArgs e) { Simplovation.Web.Maps.VE.LatLong[] points = new Simplovation.Web.Maps.VE.LatLong[6]; points[0] = new Simplovation.Web.Maps.VE.LatLong(46.1950421086602, -97.03125); points[1] = new Simplovation.Web.Maps.VE.LatLong(46.0122238406324, -104.326171875); points[2] = new Simplovation.Web.Maps.VE.LatLong(43.1330611624061, -104.326171875); points[3] = new Simplovation.Web.Maps.VE.LatLong(42.9403392336318, -96.943359375); points[4] = new Simplovation.Web.Maps.VE.LatLong(45.2748864370489, -96.767578125); points[5] = new Simplovation.Web.Maps.VE.LatLong(45.7061792853308, -97.3828125); Simplovation.Web.Maps.VE.Shape s = new Simplovation.Web.Maps.VE.Shape(Simplovation.Web.Maps.VE.ShapeType.Polygon, points); s.FillColor = Simplovation.Web.Maps.VE.Color.Red; s.FillColor.A = 0.5; // make sure the color is semi-transparent s.LineColor = Simplovation.Web.Maps.VE.Color.Blue; s.LineWidth = 2; // make the line width 2 pixels Map1.AddShape(s); }
/// <summary> /// Initializes a new instance of the Shape object of type Pushpin. /// </summary> /// <param name="point">The location of the Pushpin</param> public Shape(LatLong point) { this.Type = ShapeType.Pushpin; this.Points.Add(point); }