/// <summary>
 /// Required method for Designer support - do not modify
 /// the contents of this method with the code editor.
 /// </summary>
 private void InitializeComponent()
 {
     this.components = new System.ComponentModel.Container();
     DevExpress.XtraMap.ColorListLegend         colorListLegend1         = new DevExpress.XtraMap.ColorListLegend();
     DevExpress.XtraMap.SizeLegend              sizeLegend1              = new DevExpress.XtraMap.SizeLegend();
     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.MeasureRules            measureRules1            = new DevExpress.XtraMap.MeasureRules();
     DevExpress.XtraMap.LinearRangeDistribution linearRangeDistribution1 = new DevExpress.XtraMap.LinearRangeDistribution();
     this.mapControl1          = new DevExpress.XtraMap.MapControl();
     this.defaultLookAndFeel1  = new DevExpress.LookAndFeel.DefaultLookAndFeel(this.components);
     this.toolTipController1   = new DevExpress.Utils.ToolTipController(this.components);
     this.bingMapDataProvider1 = new DevExpress.XtraMap.BingMapDataProvider();
     this.imageLayer1          = new DevExpress.XtraMap.ImageLayer();
     this.vectorItemsLayer1    = new DevExpress.XtraMap.VectorItemsLayer();
     this.pieChartDataAdapter1 = new DevExpress.XtraMap.PieChartDataAdapter();
     ((System.ComponentModel.ISupportInitialize)(this.mapControl1)).BeginInit();
     this.SuspendLayout();
     //
     // mapControl1
     //
     this.mapControl1.Dock = System.Windows.Forms.DockStyle.Fill;
     this.mapControl1.Layers.Add(this.imageLayer1);
     this.mapControl1.Layers.Add(this.vectorItemsLayer1);
     colorListLegend1.Header = "Medal Class";
     colorListLegend1.Layer  = this.vectorItemsLayer1;
     sizeLegend1.Alignment   = DevExpress.XtraMap.LegendAlignment.TopRight;
     sizeLegend1.Header      = "Medal Count";
     sizeLegend1.Layer       = this.vectorItemsLayer1;
     this.mapControl1.Legends.Add(colorListLegend1);
     this.mapControl1.Legends.Add(sizeLegend1);
     this.mapControl1.Location          = new System.Drawing.Point(0, 0);
     this.mapControl1.Name              = "mapControl1";
     this.mapControl1.Size              = new System.Drawing.Size(775, 454);
     this.mapControl1.TabIndex          = 0;
     this.mapControl1.ToolTipController = this.toolTipController1;
     //
     // defaultLookAndFeel1
     //
     this.defaultLookAndFeel1.LookAndFeel.SkinName = "Office 2016 Colorful";
     //
     // toolTipController1
     //
     this.toolTipController1.AllowHtmlText = true;
     this.bingMapDataProvider1.BingKey     = "YOUR BING MAPS KEY";
     this.imageLayer1.DataProvider         = this.bingMapDataProvider1;
     keyColorColorizer1.Colors.Add(System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(207)))), ((int)(((byte)(98))))));
     keyColorColorizer1.Colors.Add(System.Drawing.Color.FromArgb(((int)(((byte)(169)))), ((int)(((byte)(181)))), ((int)(((byte)(188))))));
     keyColorColorizer1.Colors.Add(System.Drawing.Color.FromArgb(((int)(((byte)(233)))), ((int)(((byte)(152)))), ((int)(((byte)(118))))));
     keyColorColorizer1.ItemKeyProvider = argumentItemKeyProvider1;
     colorizerKeyItem1.Key  = 1;
     colorizerKeyItem1.Name = "Gold";
     colorizerKeyItem2.Key  = 2;
     colorizerKeyItem2.Name = "Silver";
     colorizerKeyItem3.Key  = 3;
     colorizerKeyItem3.Name = "Bronze";
     keyColorColorizer1.Keys.Add(colorizerKeyItem1);
     keyColorColorizer1.Keys.Add(colorizerKeyItem2);
     keyColorColorizer1.Keys.Add(colorizerKeyItem3);
     this.vectorItemsLayer1.Colorizer              = keyColorColorizer1;
     this.vectorItemsLayer1.Data                   = this.pieChartDataAdapter1;
     this.vectorItemsLayer1.ToolTipPattern         = "<b>%A%</b>\r\nGold: %V0%\r\nSilver: %V1%\r\nBronze: %V2%\r\nTotal: %V%";
     this.vectorItemsLayer1.DataLoaded            += new DevExpress.XtraMap.DataLoadedEventHandler(this.OnDataLoaded);
     this.pieChartDataAdapter1.ItemMaxSize         = 60;
     this.pieChartDataAdapter1.ItemMinSize         = 20;
     this.pieChartDataAdapter1.Mappings.Latitude   = "CapitalLat";
     this.pieChartDataAdapter1.Mappings.Longitude  = "CapitalLon";
     this.pieChartDataAdapter1.Mappings.PieSegment = "MedalClass";
     this.pieChartDataAdapter1.Mappings.Value      = "Quantity";
     measureRules1.RangeDistribution               = linearRangeDistribution1;
     measureRules1.RangeStops.Add(1D);
     measureRules1.RangeStops.Add(10D);
     measureRules1.RangeStops.Add(20D);
     measureRules1.RangeStops.Add(30D);
     measureRules1.RangeStops.Add(40D);
     this.pieChartDataAdapter1.MeasureRules      = measureRules1;
     this.pieChartDataAdapter1.PieItemDataMember = "Name";
     //
     // Form1
     //
     this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
     this.AutoScaleMode       = System.Windows.Forms.AutoScaleMode.Font;
     this.ClientSize          = new System.Drawing.Size(775, 454);
     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()
 {
     this.components = new System.ComponentModel.Container();
     DevExpress.XtraMap.VectorItemsLayer            vectorItemsLayer2            = new DevExpress.XtraMap.VectorItemsLayer();
     DevExpress.XtraMap.ChoroplethColorizer         choroplethColorizer2         = new DevExpress.XtraMap.ChoroplethColorizer();
     DevExpress.XtraMap.LinearRangeDistribution     linearRangeDistribution2     = new DevExpress.XtraMap.LinearRangeDistribution();
     DevExpress.XtraMap.ShapeAttributeValueProvider shapeAttributeValueProvider2 = new DevExpress.XtraMap.ShapeAttributeValueProvider();
     DevExpress.XtraMap.ShapefileDataAdapter        shapefileDataAdapter2        = new DevExpress.XtraMap.ShapefileDataAdapter();
     DevExpress.XtraMap.ColorScaleLegend            colorScaleLegend2            = new DevExpress.XtraMap.ColorScaleLegend();
     this.layoutControl1      = new DevExpress.XtraLayout.LayoutControl();
     this.seFactor            = new DevExpress.XtraEditors.SpinEdit();
     this.cbRangeDistribution = new System.Windows.Forms.ComboBox();
     this.mapControl1         = new DevExpress.XtraMap.MapControl();
     this.toolTipController1  = new DevExpress.Utils.ToolTipController(this.components);
     this.layoutControlGroup1 = new DevExpress.XtraLayout.LayoutControlGroup();
     this.layoutControlItem1  = new DevExpress.XtraLayout.LayoutControlItem();
     this.layoutControlItem2  = new DevExpress.XtraLayout.LayoutControlItem();
     this.layoutControlItem3  = new DevExpress.XtraLayout.LayoutControlItem();
     this.cbApproximateColors = new System.Windows.Forms.CheckBox();
     this.layoutControlItem4  = new DevExpress.XtraLayout.LayoutControlItem();
     ((System.ComponentModel.ISupportInitialize)(this.layoutControl1)).BeginInit();
     this.layoutControl1.SuspendLayout();
     ((System.ComponentModel.ISupportInitialize)(this.seFactor.Properties)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.mapControl1)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.layoutControlGroup1)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem1)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem2)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem3)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem4)).BeginInit();
     this.SuspendLayout();
     //
     // layoutControl1
     //
     this.layoutControl1.Controls.Add(this.cbApproximateColors);
     this.layoutControl1.Controls.Add(this.seFactor);
     this.layoutControl1.Controls.Add(this.cbRangeDistribution);
     this.layoutControl1.Controls.Add(this.mapControl1);
     this.layoutControl1.Dock     = System.Windows.Forms.DockStyle.Fill;
     this.layoutControl1.Location = new System.Drawing.Point(0, 0);
     this.layoutControl1.Name     = "layoutControl1";
     this.layoutControl1.OptionsPrint.AppearanceGroupCaption.BackColor              = System.Drawing.Color.LightGray;
     this.layoutControl1.OptionsPrint.AppearanceGroupCaption.Font                   = new System.Drawing.Font("Tahoma", 10.25F);
     this.layoutControl1.OptionsPrint.AppearanceGroupCaption.Options.UseBackColor   = true;
     this.layoutControl1.OptionsPrint.AppearanceGroupCaption.Options.UseFont        = true;
     this.layoutControl1.OptionsPrint.AppearanceGroupCaption.Options.UseTextOptions = true;
     this.layoutControl1.OptionsPrint.AppearanceGroupCaption.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Center;
     this.layoutControl1.OptionsPrint.AppearanceGroupCaption.TextOptions.VAlignment = DevExpress.Utils.VertAlignment.Center;
     this.layoutControl1.OptionsPrint.AppearanceItemCaption.Options.UseTextOptions  = true;
     this.layoutControl1.OptionsPrint.AppearanceItemCaption.TextOptions.HAlignment  = DevExpress.Utils.HorzAlignment.Near;
     this.layoutControl1.OptionsPrint.AppearanceItemCaption.TextOptions.VAlignment  = DevExpress.Utils.VertAlignment.Center;
     this.layoutControl1.Root     = this.layoutControlGroup1;
     this.layoutControl1.Size     = new System.Drawing.Size(784, 561);
     this.layoutControl1.TabIndex = 1;
     this.layoutControl1.Text     = "layoutControl1";
     //
     // seFactor
     //
     this.seFactor.EditValue = new decimal(new int[] {
         0,
         0,
         0,
         0
     });
     this.seFactor.Location = new System.Drawing.Point(540, 12);
     this.seFactor.Name     = "seFactor";
     this.seFactor.Properties.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] {
         new DevExpress.XtraEditors.Controls.EditorButton(DevExpress.XtraEditors.Controls.ButtonPredefines.Combo)
     });
     this.seFactor.Properties.Increment = new decimal(new int[] {
         1,
         0,
         0,
         65536
     });
     this.seFactor.Properties.MaxValue = new decimal(new int[] {
         10,
         0,
         0,
         0
     });
     this.seFactor.Size              = new System.Drawing.Size(232, 20);
     this.seFactor.StyleController   = this.layoutControl1;
     this.seFactor.TabIndex          = 6;
     this.seFactor.EditValueChanged += new System.EventHandler(this.seFactor_EditValueChanged);
     //
     // cbRangeDistribution
     //
     this.cbRangeDistribution.DropDownStyle     = System.Windows.Forms.ComboBoxStyle.DropDownList;
     this.cbRangeDistribution.FormattingEnabled = true;
     this.cbRangeDistribution.Location          = new System.Drawing.Point(227, 12);
     this.cbRangeDistribution.Name                  = "cbRangeDistribution";
     this.cbRangeDistribution.Size                  = new System.Drawing.Size(214, 21);
     this.cbRangeDistribution.TabIndex              = 1;
     this.cbRangeDistribution.SelectedIndexChanged += new System.EventHandler(this.cbRangeDistribution_SelectedIndexChanged);
     //
     // mapControl1
     //
     choroplethColorizer2.ApproximateColors     = true;
     choroplethColorizer2.PredefinedColorSchema = DevExpress.XtraMap.PredefinedColorSchema.Criteria;
     choroplethColorizer2.RangeDistribution     = linearRangeDistribution2;
     choroplethColorizer2.RangeStops.Add(0D);
     choroplethColorizer2.RangeStops.Add(3000D);
     choroplethColorizer2.RangeStops.Add(10000D);
     choroplethColorizer2.RangeStops.Add(18000D);
     choroplethColorizer2.RangeStops.Add(28000D);
     choroplethColorizer2.RangeStops.Add(44000D);
     choroplethColorizer2.RangeStops.Add(82000D);
     choroplethColorizer2.RangeStops.Add(185000D);
     choroplethColorizer2.RangeStops.Add(1000000D);
     choroplethColorizer2.RangeStops.Add(2500000D);
     choroplethColorizer2.RangeStops.Add(15000000D);
     shapeAttributeValueProvider2.AttributeName = "GDP_MD_EST";
     choroplethColorizer2.ValueProvider         = shapeAttributeValueProvider2;
     vectorItemsLayer2.Colorizer      = choroplethColorizer2;
     vectorItemsLayer2.Data           = shapefileDataAdapter2;
     vectorItemsLayer2.Name           = "MapLayer";
     vectorItemsLayer2.ToolTipPattern = "{NAME}: ${GDP_MD_EST}";
     this.mapControl1.Layers.Add(vectorItemsLayer2);
     colorScaleLegend2.Description = "In US dollars";
     colorScaleLegend2.Header      = "GDP By Countries";
     colorScaleLegend2.Layer       = vectorItemsLayer2;
     this.mapControl1.Legends.Add(colorScaleLegend2);
     this.mapControl1.Location          = new System.Drawing.Point(12, 37);
     this.mapControl1.Name              = "mapControl1";
     this.mapControl1.Size              = new System.Drawing.Size(760, 512);
     this.mapControl1.TabIndex          = 4;
     this.mapControl1.ToolTipController = this.toolTipController1;
     //
     // toolTipController1
     //
     this.toolTipController1.AllowHtmlText = true;
     //
     // layoutControlGroup1
     //
     this.layoutControlGroup1.EnableIndentsWithoutBorders = DevExpress.Utils.DefaultBoolean.True;
     this.layoutControlGroup1.GroupBordersVisible         = false;
     this.layoutControlGroup1.Items.AddRange(new DevExpress.XtraLayout.BaseLayoutItem[] {
         this.layoutControlItem1,
         this.layoutControlItem2,
         this.layoutControlItem3,
         this.layoutControlItem4
     });
     this.layoutControlGroup1.Location    = new System.Drawing.Point(0, 0);
     this.layoutControlGroup1.Name        = "layoutControlGroup1";
     this.layoutControlGroup1.Size        = new System.Drawing.Size(784, 561);
     this.layoutControlGroup1.TextVisible = false;
     //
     // layoutControlItem1
     //
     this.layoutControlItem1.Control     = this.mapControl1;
     this.layoutControlItem1.Location    = new System.Drawing.Point(0, 25);
     this.layoutControlItem1.Name        = "layoutControlItem1";
     this.layoutControlItem1.Size        = new System.Drawing.Size(764, 516);
     this.layoutControlItem1.TextSize    = new System.Drawing.Size(0, 0);
     this.layoutControlItem1.TextVisible = false;
     //
     // layoutControlItem2
     //
     this.layoutControlItem2.Control  = this.cbRangeDistribution;
     this.layoutControlItem2.Location = new System.Drawing.Point(120, 0);
     this.layoutControlItem2.Name     = "layoutControlItem2";
     this.layoutControlItem2.Size     = new System.Drawing.Size(313, 25);
     this.layoutControlItem2.Text     = "Range Distribution:";
     this.layoutControlItem2.TextSize = new System.Drawing.Size(92, 13);
     //
     // layoutControlItem3
     //
     this.layoutControlItem3.Control  = this.seFactor;
     this.layoutControlItem3.Location = new System.Drawing.Point(433, 0);
     this.layoutControlItem3.Name     = "layoutControlItem3";
     this.layoutControlItem3.Size     = new System.Drawing.Size(331, 25);
     this.layoutControlItem3.Text     = "Factor Value:";
     this.layoutControlItem3.TextSize = new System.Drawing.Size(92, 13);
     //
     // cbApproximateColors
     //
     this.cbApproximateColors.Location = new System.Drawing.Point(12, 12);
     this.cbApproximateColors.Name     = "cbApproximateColors";
     this.cbApproximateColors.Size     = new System.Drawing.Size(116, 20);
     this.cbApproximateColors.TabIndex = 7;
     this.cbApproximateColors.Text     = "Approximate Colors";
     this.cbApproximateColors.UseVisualStyleBackColor = true;
     this.cbApproximateColors.CheckedChanged         += new System.EventHandler(this.cbApproximateColors_CheckedChanged);
     //
     // layoutControlItem4
     //
     this.layoutControlItem4.Control     = this.cbApproximateColors;
     this.layoutControlItem4.Location    = new System.Drawing.Point(0, 0);
     this.layoutControlItem4.Name        = "layoutControlItem4";
     this.layoutControlItem4.Size        = new System.Drawing.Size(120, 25);
     this.layoutControlItem4.TextSize    = new System.Drawing.Size(0, 0);
     this.layoutControlItem4.TextVisible = false;
     //
     // Form1
     //
     this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
     this.AutoScaleMode       = System.Windows.Forms.AutoScaleMode.Font;
     this.ClientSize          = new System.Drawing.Size(784, 561);
     this.Controls.Add(this.layoutControl1);
     this.Name = "Form1";
     this.Text = "Form1";
     ((System.ComponentModel.ISupportInitialize)(this.layoutControl1)).EndInit();
     this.layoutControl1.ResumeLayout(false);
     ((System.ComponentModel.ISupportInitialize)(this.seFactor.Properties)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.mapControl1)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.layoutControlGroup1)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem1)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem2)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem3)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem4)).EndInit();
     this.ResumeLayout(false);
 }
Ejemplo n.º 3
0
 /// <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();
 }
Ejemplo n.º 4
0
 /// <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       keyColorColorizer3       = new DevExpress.XtraMap.KeyColorColorizer();
     DevExpress.XtraMap.ArgumentItemKeyProvider argumentItemKeyProvider3 = new DevExpress.XtraMap.ArgumentItemKeyProvider();
     DevExpress.XtraMap.ColorizerKeyItem        colorizerKeyItem7        = new DevExpress.XtraMap.ColorizerKeyItem();
     DevExpress.XtraMap.ColorizerKeyItem        colorizerKeyItem8        = new DevExpress.XtraMap.ColorizerKeyItem();
     DevExpress.XtraMap.ColorizerKeyItem        colorizerKeyItem9        = new DevExpress.XtraMap.ColorizerKeyItem();
     DevExpress.XtraMap.MeasureRules            measureRules3            = new DevExpress.XtraMap.MeasureRules();
     DevExpress.XtraMap.LinearRangeDistribution linearRangeDistribution3 = new DevExpress.XtraMap.LinearRangeDistribution();
     this.splitContainerControl1     = new DevExpress.XtraEditors.SplitContainerControl();
     this.mapControl1                = new DevExpress.XtraMap.MapControl();
     this.imageLayer1                = new DevExpress.XtraMap.ImageLayer();
     this.openStreetMapDataProvider1 = new DevExpress.XtraMap.OpenStreetMapDataProvider();
     this.analyticalDataLayer        = new DevExpress.XtraMap.VectorItemsLayer();
     this.pieChartDataAdapter1       = new DevExpress.XtraMap.PieChartDataAdapter();
     ((System.ComponentModel.ISupportInitialize)(this.splitContainerControl1)).BeginInit();
     this.splitContainerControl1.SuspendLayout();
     ((System.ComponentModel.ISupportInitialize)(this.mapControl1)).BeginInit();
     this.SuspendLayout();
     //
     // splitContainerControl1
     //
     this.splitContainerControl1.Dock        = System.Windows.Forms.DockStyle.Fill;
     this.splitContainerControl1.Location    = new System.Drawing.Point(0, 0);
     this.splitContainerControl1.Name        = "splitContainerControl1";
     this.splitContainerControl1.Panel1.Text = "Panel1";
     this.splitContainerControl1.Panel2.Controls.Add(this.mapControl1);
     this.splitContainerControl1.Panel2.Text      = "Panel2";
     this.splitContainerControl1.Size             = new System.Drawing.Size(842, 490);
     this.splitContainerControl1.SplitterPosition = 500;
     this.splitContainerControl1.TabIndex         = 0;
     this.splitContainerControl1.Text             = "splitContainerControl1";
     //
     // mapControl1
     //
     this.mapControl1.CenterPoint = new DevExpress.XtraMap.GeoPoint(15D, 107D);
     this.mapControl1.Dock        = System.Windows.Forms.DockStyle.Fill;
     this.mapControl1.Layers.Add(this.imageLayer1);
     this.mapControl1.Layers.Add(this.analyticalDataLayer);
     this.mapControl1.Location  = new System.Drawing.Point(0, 0);
     this.mapControl1.Name      = "mapControl1";
     this.mapControl1.Size      = new System.Drawing.Size(337, 490);
     this.mapControl1.TabIndex  = 0;
     this.mapControl1.ZoomLevel = 5D;
     //
     // imageLayer1
     //
     this.imageLayer1.DataProvider = this.openStreetMapDataProvider1;
     //
     // openStreetMapDataProvider1
     //
     this.openStreetMapDataProvider1.TileUriTemplate = "http://{0}.tile.INSERT_SERVER_NAME.com/{1}/{2}/{3}.png";
     //
     // analyticalDataLayer
     //
     keyColorColorizer3.Colors.Add(System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(128)))), ((int)(((byte)(0))))));
     keyColorColorizer3.Colors.Add(System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(0))))));
     keyColorColorizer3.Colors.Add(System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(0)))), ((int)(((byte)(255))))));
     keyColorColorizer3.Colors.Add(System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(128)))), ((int)(((byte)(255))))));
     keyColorColorizer3.ItemKeyProvider = argumentItemKeyProvider3;
     colorizerKeyItem7.Key  = "1";
     colorizerKeyItem7.Name = "Gold";
     colorizerKeyItem8.Key  = "2";
     colorizerKeyItem8.Name = "Silver";
     colorizerKeyItem9.Key  = "3";
     colorizerKeyItem9.Name = "Bronze";
     keyColorColorizer3.Keys.Add(colorizerKeyItem7);
     keyColorColorizer3.Keys.Add(colorizerKeyItem8);
     keyColorColorizer3.Keys.Add(colorizerKeyItem9);
     this.analyticalDataLayer.Colorizer      = keyColorColorizer3;
     this.analyticalDataLayer.Data           = this.pieChartDataAdapter1;
     this.analyticalDataLayer.ToolTipPattern = "<b>%A%</b>\r\nGold: %V0%\r\nSilver: %V1%\r\nBronze: %V2%\r\nTotal:%V%";
     this.analyticalDataLayer.DataLoaded    += new DevExpress.XtraMap.DataLoadedEventHandler(this.OnDataLoaded);
     //
     // pieChartDataAdapter1
     //
     this.pieChartDataAdapter1.ItemMaxSize         = 60;
     this.pieChartDataAdapter1.ItemMinSize         = 20;
     this.pieChartDataAdapter1.Mappings.Latitude   = "CapitalLat";
     this.pieChartDataAdapter1.Mappings.Longitude  = "CapitalLon";
     this.pieChartDataAdapter1.Mappings.PieSegment = "MedalClass";
     this.pieChartDataAdapter1.Mappings.Value      = "Quantity";
     measureRules3.RangeDistribution = linearRangeDistribution3;
     measureRules3.RangeStops.Add(10D);
     measureRules3.RangeStops.Add(50D);
     measureRules3.RangeStops.Add(100D);
     measureRules3.RangeStops.Add(500D);
     measureRules3.RangeStops.Add(1000D);
     measureRules3.RangeStops.Add(2000D);
     measureRules3.RangeStops.Add(5000D);
     measureRules3.RangeStops.Add(10000D);
     measureRules3.RangeStops.Add(100000D);
     measureRules3.RangeStops.Add(1000000D);
     this.pieChartDataAdapter1.MeasureRules      = measureRules3;
     this.pieChartDataAdapter1.PieItemDataMember = "Name";
     //
     // FormHome
     //
     this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
     this.AutoScaleMode       = System.Windows.Forms.AutoScaleMode.Font;
     this.ClientSize          = new System.Drawing.Size(842, 490);
     this.Controls.Add(this.splitContainerControl1);
     this.Name  = "FormHome";
     this.Text  = "FormHome";
     this.Load += new System.EventHandler(this.FormHome_Load);
     ((System.ComponentModel.ISupportInitialize)(this.splitContainerControl1)).EndInit();
     this.splitContainerControl1.ResumeLayout(false);
     ((System.ComponentModel.ISupportInitialize)(this.mapControl1)).EndInit();
     this.ResumeLayout(false);
 }