/// <summary> /// Required method for Designer support - do not modify /// the contents of this method with the code editor. /// </summary> private void InitializeComponent() { DevExpress.XtraMap.MapItemAttributeMapping mapItemAttributeMapping1 = new DevExpress.XtraMap.MapItemAttributeMapping(); this.imageTilesLayer2 = new DevExpress.XtraMap.ImageLayer(); this.bingMapDataProvider2 = new DevExpress.XtraMap.BingMapDataProvider(); this.vectorItemsLayer2 = new DevExpress.XtraMap.VectorItemsLayer(); this.listSourceDataAdapter2 = new DevExpress.XtraMap.ListSourceDataAdapter(); this.map = new DevExpress.XtraMap.MapControl(); ((System.ComponentModel.ISupportInitialize)(this.map)).BeginInit(); this.SuspendLayout(); // // imageTilesLayer2 // this.imageTilesLayer2.DataProvider = this.bingMapDataProvider2; // // vectorItemsLayer2 // this.vectorItemsLayer2.Data = this.listSourceDataAdapter2; this.vectorItemsLayer2.Name = "VectorLayer"; // // listSourceDataAdapter2 // mapItemAttributeMapping1.Member = "LocationName"; mapItemAttributeMapping1.Name = "LocationName"; mapItemAttributeMapping1.ValueType = DevExpress.XtraMap.FieldValueType.String; this.listSourceDataAdapter2.AttributeMappings.Add(mapItemAttributeMapping1); this.listSourceDataAdapter2.DefaultMapItemType = DevExpress.XtraMap.MapItemType.Dot; this.listSourceDataAdapter2.Mappings.Latitude = "Latitude"; this.listSourceDataAdapter2.Mappings.Longitude = "Longitude"; // // map // this.map.Dock = System.Windows.Forms.DockStyle.Fill; this.map.Layers.Add(this.imageTilesLayer2); this.map.Layers.Add(this.vectorItemsLayer2); this.map.Location = new System.Drawing.Point(0, 0); this.map.Name = "map"; this.map.Size = new System.Drawing.Size(1264, 681); this.map.TabIndex = 0; // // Form1 // this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; this.ClientSize = new System.Drawing.Size(1264, 681); this.Controls.Add(this.map); this.Name = "Form1"; this.Text = "Form1"; this.Load += new System.EventHandler(this.Form1_Load); ((System.ComponentModel.ISupportInitialize)(this.map)).EndInit(); this.ResumeLayout(false); }
/// <summary> /// Required method for Designer support - do not modify /// the contents of this method with the code editor. /// </summary> private void InitializeComponent() { DevExpress.XtraMap.VectorItemsLayer vectorItemsLayer1 = new DevExpress.XtraMap.VectorItemsLayer(); DevExpress.XtraMap.ListSourceDataAdapter listSourceDataAdapter1 = new DevExpress.XtraMap.ListSourceDataAdapter(); DevExpress.XtraMap.MapItemAttributeMapping mapItemAttributeMapping1 = new DevExpress.XtraMap.MapItemAttributeMapping(); DevExpress.XtraMap.MapItemAttributeMapping mapItemAttributeMapping2 = new DevExpress.XtraMap.MapItemAttributeMapping(); this.mapControl1 = new DevExpress.XtraMap.MapControl(); ((System.ComponentModel.ISupportInitialize)(this.mapControl1)).BeginInit(); this.SuspendLayout(); // // mapControl1 // this.mapControl1.Dock = System.Windows.Forms.DockStyle.Fill; mapItemAttributeMapping1.Member = "Tag"; mapItemAttributeMapping1.Name = "ColorProp"; mapItemAttributeMapping2.Member = "Label"; mapItemAttributeMapping2.Name = "Label"; mapItemAttributeMapping2.ValueType = DevExpress.XtraMap.FieldValueType.String; listSourceDataAdapter1.AttributeMappings.Add(mapItemAttributeMapping1); listSourceDataAdapter1.AttributeMappings.Add(mapItemAttributeMapping2); listSourceDataAdapter1.DefaultMapItemType = DevExpress.XtraMap.MapItemType.Rectangle; listSourceDataAdapter1.Mappings.Latitude = "Lat"; listSourceDataAdapter1.Mappings.Longitude = "Lon"; listSourceDataAdapter1.Mappings.Text = "Text"; vectorItemsLayer1.Data = listSourceDataAdapter1; vectorItemsLayer1.ShapeTitlesPattern = "{Label}"; this.mapControl1.Layers.Add(vectorItemsLayer1); this.mapControl1.Location = new System.Drawing.Point(0, 0); this.mapControl1.LookAndFeel.SkinName = "VS2010"; this.mapControl1.LookAndFeel.UseDefaultLookAndFeel = false; this.mapControl1.Name = "mapControl1"; this.mapControl1.Size = new System.Drawing.Size(825, 546); this.mapControl1.TabIndex = 0; this.mapControl1.ZoomLevel = 4D; this.mapControl1.DrawMapItem += new DevExpress.XtraMap.DrawMapItemEventHandler(this.mapControl1_DrawMapItem); // // Form1 // this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; this.ClientSize = new System.Drawing.Size(825, 546); this.Controls.Add(this.mapControl1); this.Name = "Form1"; this.Text = "Form1"; ((System.ComponentModel.ISupportInitialize)(this.mapControl1)).EndInit(); this.ResumeLayout(false); }
/// <summary> /// Required method for Designer support - do not modify /// the contents of this method with the code editor. /// </summary> private void InitializeComponent() { DevExpress.XtraMap.KeyColorColorizer keyColorColorizer1 = new DevExpress.XtraMap.KeyColorColorizer(); DevExpress.XtraMap.ArgumentItemKeyProvider argumentItemKeyProvider1 = new DevExpress.XtraMap.ArgumentItemKeyProvider(); DevExpress.XtraMap.ColorizerKeyItem colorizerKeyItem1 = new DevExpress.XtraMap.ColorizerKeyItem(); DevExpress.XtraMap.ColorizerKeyItem colorizerKeyItem2 = new DevExpress.XtraMap.ColorizerKeyItem(); DevExpress.XtraMap.ColorizerKeyItem colorizerKeyItem3 = new DevExpress.XtraMap.ColorizerKeyItem(); DevExpress.XtraMap.ColorizerKeyItem colorizerKeyItem4 = new DevExpress.XtraMap.ColorizerKeyItem(); DevExpress.XtraMap.ColorizerKeyItem colorizerKeyItem5 = new DevExpress.XtraMap.ColorizerKeyItem(); DevExpress.XtraMap.MapItemAttributeMapping mapItemAttributeMapping1 = new DevExpress.XtraMap.MapItemAttributeMapping(); DevExpress.XtraMap.MeasureRules measureRules1 = new DevExpress.XtraMap.MeasureRules(); DevExpress.XtraMap.LinearRangeDistribution linearRangeDistribution1 = new DevExpress.XtraMap.LinearRangeDistribution(); System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(Form1)); DevExpress.XtraMap.ColorListLegend colorListLegend1 = new DevExpress.XtraMap.ColorListLegend(); DevExpress.XtraMap.MiniMap miniMap1 = new DevExpress.XtraMap.MiniMap(); DevExpress.XtraMap.DynamicMiniMapBehavior dynamicMiniMapBehavior1 = new DevExpress.XtraMap.DynamicMiniMapBehavior(); this.vectorItemsLayer2 = new DevExpress.XtraMap.VectorItemsLayer(); this.pieChartDataAdapter1 = new DevExpress.XtraMap.PieChartDataAdapter(); this.miniMapImageTilesLayer1 = new DevExpress.XtraMap.MiniMapImageTilesLayer(); this.openStreetMapDataProvider1 = new DevExpress.XtraMap.OpenStreetMapDataProvider(); this.ribbonControl1 = new DevExpress.XtraBars.Ribbon.RibbonControl(); this.chkMiniMap = new DevExpress.XtraBars.BarCheckItem(); this.chkShowNavPanel = new DevExpress.XtraBars.BarCheckItem(); this.chkNavigation = new DevExpress.XtraBars.BarCheckItem(); this.bbiZoomIn = new DevExpress.XtraBars.BarButtonItem(); this.bbiZoomOut = new DevExpress.XtraBars.BarButtonItem(); this.bbiInitialView = new DevExpress.XtraBars.BarButtonItem(); this.barCheckItem1 = new DevExpress.XtraBars.BarCheckItem(); this.ribbonPage1 = new DevExpress.XtraBars.Ribbon.RibbonPage(); this.ribbonPageGroup2 = new DevExpress.XtraBars.Ribbon.RibbonPageGroup(); this.ribbonPageGroup1 = new DevExpress.XtraBars.Ribbon.RibbonPageGroup(); this.mapControl1 = new DevExpress.XtraMap.MapControl(); this.vectorItemsLayer1 = new DevExpress.XtraMap.VectorItemsLayer(); this.shapefileDataAdapter1 = new DevExpress.XtraMap.ShapefileDataAdapter(); ((System.ComponentModel.ISupportInitialize)(this.ribbonControl1)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.mapControl1)).BeginInit(); this.SuspendLayout(); // // vectorItemsLayer2 // keyColorColorizer1.Colors.Add(System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(93)))), ((int)(((byte)(106)))))); keyColorColorizer1.Colors.Add(System.Drawing.Color.FromArgb(((int)(((byte)(65)))), ((int)(((byte)(124)))), ((int)(((byte)(217)))))); keyColorColorizer1.Colors.Add(System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(221)))), ((int)(((byte)(116)))))); keyColorColorizer1.Colors.Add(System.Drawing.Color.FromArgb(((int)(((byte)(103)))), ((int)(((byte)(191)))), ((int)(((byte)(88)))))); keyColorColorizer1.Colors.Add(System.Drawing.Color.FromArgb(((int)(((byte)(140)))), ((int)(((byte)(104)))), ((int)(((byte)(195)))))); keyColorColorizer1.ItemKeyProvider = argumentItemKeyProvider1; colorizerKeyItem1.Key = "Gases"; colorizerKeyItem1.Name = "Gases"; colorizerKeyItem2.Key = "Nuclear"; colorizerKeyItem2.Name = "Nuclear"; colorizerKeyItem3.Key = "Petroleum Products"; colorizerKeyItem3.Name = "Petroleum Products"; colorizerKeyItem4.Key = "Renewables"; colorizerKeyItem4.Name = "Renewables"; colorizerKeyItem5.Key = "Solid Fuels"; colorizerKeyItem5.Name = "Solid Fuels"; keyColorColorizer1.Keys.Add(colorizerKeyItem1); keyColorColorizer1.Keys.Add(colorizerKeyItem2); keyColorColorizer1.Keys.Add(colorizerKeyItem3); keyColorColorizer1.Keys.Add(colorizerKeyItem4); keyColorColorizer1.Keys.Add(colorizerKeyItem5); this.vectorItemsLayer2.Colorizer = keyColorColorizer1; this.vectorItemsLayer2.Data = this.pieChartDataAdapter1; this.vectorItemsLayer2.Name = "ChartLayer"; this.vectorItemsLayer2.ToolTipPattern = "{Country}\n\n%A0%: %V0:n2%\n%A1%: %V1:n2%\n%A2%: %V2:n2%\n%A3%: %V3:n2%\n%A4%: %V4:n2%"; // // pieChartDataAdapter1 // mapItemAttributeMapping1.Member = "Country"; mapItemAttributeMapping1.Name = "Country"; mapItemAttributeMapping1.ValueType = DevExpress.XtraMap.FieldValueType.String; this.pieChartDataAdapter1.AttributeMappings.Add(mapItemAttributeMapping1); this.pieChartDataAdapter1.ItemMaxSize = 25; this.pieChartDataAdapter1.Mappings.PieSegment = "EnergyType"; this.pieChartDataAdapter1.Mappings.Value = "Production"; this.pieChartDataAdapter1.Mappings.XCoordinate = "Longitude"; this.pieChartDataAdapter1.Mappings.YCoordinate = "Latitude"; measureRules1.RangeDistribution = linearRangeDistribution1; measureRules1.RangeStops.Add(1D); measureRules1.RangeStops.Add(10D); measureRules1.RangeStops.Add(25D); measureRules1.RangeStops.Add(50D); measureRules1.RangeStops.Add(100D); measureRules1.RangeStops.Add(150D); this.pieChartDataAdapter1.MeasureRules = measureRules1; this.pieChartDataAdapter1.PieItemDataMember = "Country"; // // miniMapImageTilesLayer1 // this.miniMapImageTilesLayer1.DataProvider = this.openStreetMapDataProvider1; // // ribbonControl1 // this.ribbonControl1.ExpandCollapseItem.Id = 0; this.ribbonControl1.Items.AddRange(new DevExpress.XtraBars.BarItem[] { this.ribbonControl1.ExpandCollapseItem, this.chkMiniMap, this.chkShowNavPanel, this.chkNavigation, this.bbiZoomIn, this.bbiZoomOut, this.bbiInitialView, this.barCheckItem1 }); this.ribbonControl1.Location = new System.Drawing.Point(0, 0); this.ribbonControl1.MaxItemId = 7; this.ribbonControl1.Name = "ribbonControl1"; this.ribbonControl1.Pages.AddRange(new DevExpress.XtraBars.Ribbon.RibbonPage[] { this.ribbonPage1 }); this.ribbonControl1.Size = new System.Drawing.Size(1101, 143); // // chkMiniMap // this.chkMiniMap.Caption = "Show Minimap"; this.chkMiniMap.Glyph = ((System.Drawing.Image)(resources.GetObject("chkMiniMap.Glyph"))); this.chkMiniMap.Id = 1; this.chkMiniMap.LargeGlyph = ((System.Drawing.Image)(resources.GetObject("chkMiniMap.LargeGlyph"))); this.chkMiniMap.Name = "chkMiniMap"; this.chkMiniMap.CheckedChanged += new DevExpress.XtraBars.ItemClickEventHandler(this.chkShowMiniMap_CheckedChanged); // // chkShowNavPanel // this.chkShowNavPanel.BindableChecked = true; this.chkShowNavPanel.Caption = "Show Navigation Panel"; this.chkShowNavPanel.Checked = true; this.chkShowNavPanel.Glyph = ((System.Drawing.Image)(resources.GetObject("chkShowNavPanel.Glyph"))); this.chkShowNavPanel.Id = 2; this.chkShowNavPanel.LargeGlyph = ((System.Drawing.Image)(resources.GetObject("chkShowNavPanel.LargeGlyph"))); this.chkShowNavPanel.Name = "chkShowNavPanel"; this.chkShowNavPanel.CheckedChanged += new DevExpress.XtraBars.ItemClickEventHandler(this.chkShowNavPanel_CheckedChanged); // // chkNavigation // this.chkNavigation.Caption = "Lock Navigation"; this.chkNavigation.Glyph = ((System.Drawing.Image)(resources.GetObject("chkNavigation.Glyph"))); this.chkNavigation.Id = 3; this.chkNavigation.LargeGlyph = ((System.Drawing.Image)(resources.GetObject("chkNavigation.LargeGlyph"))); this.chkNavigation.Name = "chkNavigation"; this.chkNavigation.CheckedChanged += new DevExpress.XtraBars.ItemClickEventHandler(this.chkLockNavigation_CheckedChanged); // // bbiZoomIn // this.bbiZoomIn.Caption = "Zoom In"; this.bbiZoomIn.Glyph = ((System.Drawing.Image)(resources.GetObject("bbiZoomIn.Glyph"))); this.bbiZoomIn.Id = 4; this.bbiZoomIn.LargeGlyph = ((System.Drawing.Image)(resources.GetObject("bbiZoomIn.LargeGlyph"))); this.bbiZoomIn.Name = "bbiZoomIn"; this.bbiZoomIn.ItemClick += new DevExpress.XtraBars.ItemClickEventHandler(this.bbiZoomIn_ItemClick); // // bbiZoomOut // this.bbiZoomOut.Caption = "Zoom Out"; this.bbiZoomOut.Glyph = ((System.Drawing.Image)(resources.GetObject("bbiZoomOut.Glyph"))); this.bbiZoomOut.Id = 5; this.bbiZoomOut.LargeGlyph = ((System.Drawing.Image)(resources.GetObject("bbiZoomOut.LargeGlyph"))); this.bbiZoomOut.Name = "bbiZoomOut"; this.bbiZoomOut.ItemClick += new DevExpress.XtraBars.ItemClickEventHandler(this.bbiZoomOut_ItemClick); // // bbiInitialView // this.bbiInitialView.Caption = "Initial View"; this.bbiInitialView.Glyph = ((System.Drawing.Image)(resources.GetObject("bbiInitialView.Glyph"))); this.bbiInitialView.Id = 6; this.bbiInitialView.LargeGlyph = ((System.Drawing.Image)(resources.GetObject("bbiInitialView.LargeGlyph"))); this.bbiInitialView.Name = "bbiInitialView"; this.bbiInitialView.ItemClick += new DevExpress.XtraBars.ItemClickEventHandler(this.bbiInitialView_ItemClick); // // barCheckItem1 // this.barCheckItem1.BindableChecked = true; this.barCheckItem1.Caption = "Legend"; this.barCheckItem1.Checked = true; this.barCheckItem1.Glyph = ((System.Drawing.Image)(resources.GetObject("barCheckItem1.Glyph"))); this.barCheckItem1.Id = 6; this.barCheckItem1.LargeGlyph = ((System.Drawing.Image)(resources.GetObject("barCheckItem1.LargeGlyph"))); this.barCheckItem1.Name = "barCheckItem1"; this.barCheckItem1.CheckedChanged += new DevExpress.XtraBars.ItemClickEventHandler(this.barCheckItem1_CheckedChanged); // // ribbonPage1 // this.ribbonPage1.Groups.AddRange(new DevExpress.XtraBars.Ribbon.RibbonPageGroup[] { this.ribbonPageGroup2, this.ribbonPageGroup1 }); this.ribbonPage1.Name = "ribbonPage1"; this.ribbonPage1.Text = "Options"; // // ribbonPageGroup2 // this.ribbonPageGroup2.ItemLinks.Add(this.bbiInitialView); this.ribbonPageGroup2.ItemLinks.Add(this.chkShowNavPanel); this.ribbonPageGroup2.ItemLinks.Add(this.chkNavigation); this.ribbonPageGroup2.ItemLinks.Add(this.chkMiniMap); this.ribbonPageGroup2.ItemLinks.Add(this.bbiZoomIn); this.ribbonPageGroup2.ItemLinks.Add(this.bbiZoomOut); this.ribbonPageGroup2.Name = "ribbonPageGroup2"; this.ribbonPageGroup2.Text = "View"; // // ribbonPageGroup1 // this.ribbonPageGroup1.ItemLinks.Add(this.barCheckItem1); this.ribbonPageGroup1.Name = "ribbonPageGroup1"; // // mapControl1 // this.mapControl1.CenterPoint = new DevExpress.XtraMap.GeoPoint(50D, -7D); this.mapControl1.Dock = System.Windows.Forms.DockStyle.Fill; this.mapControl1.Layers.Add(this.vectorItemsLayer1); this.mapControl1.Layers.Add(this.vectorItemsLayer2); colorListLegend1.Header = "Europe energy production"; colorListLegend1.Layer = this.vectorItemsLayer2; this.mapControl1.Legends.Add(colorListLegend1); this.mapControl1.Location = new System.Drawing.Point(0, 143); miniMap1.Alignment = DevExpress.XtraMap.MiniMapAlignment.BottomRight; miniMap1.Behavior = dynamicMiniMapBehavior1; miniMap1.Layers.Add(this.miniMapImageTilesLayer1); miniMap1.Visible = false; this.mapControl1.MiniMap = miniMap1; this.mapControl1.Name = "mapControl1"; this.mapControl1.Size = new System.Drawing.Size(1101, 580); this.mapControl1.TabIndex = 0; this.mapControl1.ZoomLevel = 3D; // // vectorItemsLayer1 // this.vectorItemsLayer1.Data = this.shapefileDataAdapter1; this.vectorItemsLayer1.EnableHighlighting = false; this.vectorItemsLayer1.EnableSelection = false; this.vectorItemsLayer1.Name = "ShapeLayer"; // // Form1 // this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; this.ClientSize = new System.Drawing.Size(1101, 723); this.Controls.Add(this.mapControl1); this.Controls.Add(this.ribbonControl1); this.Name = "Form1"; this.Ribbon = this.ribbonControl1; this.Text = "Map project"; ((System.ComponentModel.ISupportInitialize)(this.ribbonControl1)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.mapControl1)).EndInit(); this.ResumeLayout(false); this.PerformLayout(); }
/// <summary> /// Required method for Designer support - do not modify /// the contents of this method with the code editor. /// </summary> private void InitializeComponent() { DevExpress.XtraMap.KeyColorColorizer keyColorColorizer1 = new DevExpress.XtraMap.KeyColorColorizer(); DevExpress.XtraMap.AttributeItemKeyProvider attributeItemKeyProvider1 = new DevExpress.XtraMap.AttributeItemKeyProvider(); DevExpress.XtraMap.MapItemAttributeMapping mapItemAttributeMapping1 = new DevExpress.XtraMap.MapItemAttributeMapping(); DevExpress.XtraMap.ColorListLegend colorListLegend2 = new DevExpress.XtraMap.ColorListLegend(); DevExpress.XtraMap.ColorScaleLegend colorScaleLegend2 = new DevExpress.XtraMap.ColorScaleLegend(); this.vectorItemsLayer1 = new DevExpress.XtraMap.VectorItemsLayer(); this.listSourceDataAdapter1 = new DevExpress.XtraMap.ListSourceDataAdapter(); this.imageTilesLayer1 = new DevExpress.XtraMap.ImageLayer(); this.bingMapDataProvider1 = new DevExpress.XtraMap.BingMapDataProvider(); this.map = new DevExpress.XtraMap.MapControl(); ((System.ComponentModel.ISupportInitialize)(this.map)).BeginInit(); this.SuspendLayout(); attributeItemKeyProvider1.AttributeName = "LocationName"; keyColorColorizer1.ItemKeyProvider = attributeItemKeyProvider1; keyColorColorizer1.PredefinedColorSchema = DevExpress.XtraMap.PredefinedColorSchema.Palette; this.vectorItemsLayer1.Colorizer = keyColorColorizer1; this.vectorItemsLayer1.Data = this.listSourceDataAdapter1; this.vectorItemsLayer1.Name = "VectorLayer"; mapItemAttributeMapping1.Member = "LocationName"; mapItemAttributeMapping1.Name = "LocationName"; mapItemAttributeMapping1.ValueType = DevExpress.XtraMap.FieldValueType.String; this.listSourceDataAdapter1.AttributeMappings.Add(mapItemAttributeMapping1); this.listSourceDataAdapter1.DefaultMapItemType = DevExpress.XtraMap.MapItemType.Dot; this.listSourceDataAdapter1.Mappings.Latitude = "Latitude"; this.listSourceDataAdapter1.Mappings.Longitude = "Longitude"; this.imageTilesLayer1.DataProvider = this.bingMapDataProvider1; this.bingMapDataProvider1.BingKey = "Insert your Bing Key here"; this.bingMapDataProvider1.Kind = DevExpress.XtraMap.BingMapKind.RoadGray; // // map // this.map.CenterPoint = new DevExpress.XtraMap.GeoPoint(-37.551D, 143.83D); this.map.Dock = System.Windows.Forms.DockStyle.Fill; this.map.Layers.Add(this.imageTilesLayer1); this.map.Layers.Add(this.vectorItemsLayer1); colorListLegend2.Header = "Tree Location"; colorListLegend2.ItemStyle.Font = new System.Drawing.Font("Tahoma", 6.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); colorListLegend2.Layer = this.vectorItemsLayer1; colorListLegend2.Visibility = DevExpress.XtraMap.VisibilityMode.Hidden; colorScaleLegend2.Alignment = DevExpress.XtraMap.LegendAlignment.TopRight; colorScaleLegend2.Header = "Tree Count"; colorScaleLegend2.HeaderStyle.Font = new System.Drawing.Font("Tahoma", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); colorScaleLegend2.ItemStyle.Font = new System.Drawing.Font("Tahoma", 6.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); colorScaleLegend2.Layer = this.vectorItemsLayer1; colorScaleLegend2.Visibility = DevExpress.XtraMap.VisibilityMode.Hidden; this.map.Legends.Add(colorListLegend2); this.map.Legends.Add(colorScaleLegend2); this.map.Location = new System.Drawing.Point(0, 0); this.map.Margin = new System.Windows.Forms.Padding(4); this.map.Name = "map"; this.map.Size = new System.Drawing.Size(853, 443); this.map.TabIndex = 0; this.map.ZoomLevel = 12D; // // Form1 // this.AutoScaleDimensions = new System.Drawing.SizeF(8F, 16F); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; this.ClientSize = new System.Drawing.Size(853, 443); this.Controls.Add(this.map); this.Margin = new System.Windows.Forms.Padding(4); this.Name = "Form1"; this.Text = "Form1"; this.Load += new System.EventHandler(this.Form1_Load); ((System.ComponentModel.ISupportInitialize)(this.map)).EndInit(); this.ResumeLayout(false); }