protected override void DrawCore(WinformsMap winformsMap) { LayerOverlay layerOverlay = null; if (!LoadingFromShapeFile) { layerOverlay = new LayerOverlay(); foreach (Layer layer in Layers) { layerOverlay.Layers.Add(layer); } } else { ShapeFileFeatureLayer.BuildIndexFile(ShapePathFileName, BuildIndexMode.DoNotRebuild); ShapeFileFeatureLayer shapeFileFeatureLayer = new ShapeFileFeatureLayer(ShapePathFileName); shapeFileFeatureLayer.ZoomLevelSet.ZoomLevel01.DefaultAreaStyle = AreaStyles.CreateSimpleAreaStyle(GeoColor.FromArgb(102, 0, 0, 255), GeoColor.FromArgb(255, 0, 0, 255), 2); shapeFileFeatureLayer.ZoomLevelSet.ZoomLevel01.DefaultLineStyle = LineStyles.CreateSimpleLineStyle(GeoColor.FromArgb(102, 0, 0, 255), 2, true); shapeFileFeatureLayer.ZoomLevelSet.ZoomLevel01.DefaultPointStyle = PointStyles.CreateSimpleCircleStyle(GeoColor.FromArgb(102, 0, 0, 255), 12); shapeFileFeatureLayer.ZoomLevelSet.ZoomLevel01.ApplyUntilZoomLevel = ApplyUntilZoomLevel.Level20; layerOverlay = new LayerOverlay(); layerOverlay.Layers.Add(shapeFileFeatureLayer); layerOverlay.Layers.Add(OutputFeatureLayer); winformsMap.CurrentExtent = GetBoundingBox(); } winformsMap.Overlays.Clear(); winformsMap.Overlays.Add(layerOverlay); winformsMap.Refresh(); }
/// <summary> /// Required method for Designer support - do not modify /// the contents of this method with the code editor. /// </summary> private void InitializeComponent() { this.winformsMap1 = new ThinkGeo.MapSuite.WinForms.WinformsMap(); this.SuspendLayout(); // // winformsMap1 // this.winformsMap1.BackColor = System.Drawing.Color.White; this.winformsMap1.Dock = System.Windows.Forms.DockStyle.Fill; this.winformsMap1.Location = new System.Drawing.Point(0, 0); this.winformsMap1.Name = "winformsMap1"; this.winformsMap1.Size = new System.Drawing.Size(740, 528); this.winformsMap1.TabIndex = 0; this.winformsMap1.Text = "winformsMap1"; // // CreateAGroupOfColorsInQualityFamily // this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; this.Controls.Add(this.winformsMap1); this.Name = "CreateAGroupOfColorsInQualityFamily"; this.Size = new System.Drawing.Size(740, 528); this.Load += new System.EventHandler(this.CreateAGroupofColorsInQualityFamily_Load); this.ResumeLayout(false); }
public static SimpleMarkerOverlay GetMarkersOverlay(WinformsMap map) { SimpleMarkerOverlay markerOverlay = new SimpleMarkerOverlay { MapControl = map, Name = "markers" }; return(markerOverlay); }
public static SimpleMarkerOverlay GetCumulativeFactorsOverlay(WinformsMap map) { SimpleMarkerOverlay cumulativeFactorsOverlay = new SimpleMarkerOverlay { MapControl = map, Name = "cumulativeFactors" }; return(cumulativeFactorsOverlay); }
/// <summary> /// Required method for Designer support - do not modify /// the contents of this method with the code editor. /// </summary> private void InitializeComponent() { this.gbxFunctions = new System.Windows.Forms.GroupBox(); this.cbxSecurityLevel = new System.Windows.Forms.ComboBox(); this.winformsMap1 = new ThinkGeo.MapSuite.WinForms.WinformsMap(); this.gbxFunctions.SuspendLayout(); this.SuspendLayout(); // // gbxFunctions // this.gbxFunctions.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); this.gbxFunctions.Controls.Add(this.cbxSecurityLevel); this.gbxFunctions.Location = new System.Drawing.Point(577, 3); this.gbxFunctions.Name = "gbxFunctions"; this.gbxFunctions.Size = new System.Drawing.Size(163, 60); this.gbxFunctions.TabIndex = 3; this.gbxFunctions.TabStop = false; this.gbxFunctions.Text = "SecurityLevel"; // // cbxSecurityLevel // this.cbxSecurityLevel.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; this.cbxSecurityLevel.FormattingEnabled = true; this.cbxSecurityLevel.Items.AddRange(new object[] { "AdministrationLevel", "AverageUsageLevel1", "AverageUsageLevel2" }); this.cbxSecurityLevel.Location = new System.Drawing.Point(6, 19); this.cbxSecurityLevel.Name = "cbxSecurityLevel"; this.cbxSecurityLevel.Size = new System.Drawing.Size(151, 21); this.cbxSecurityLevel.TabIndex = 0; this.cbxSecurityLevel.Text = "AdministrationLevel"; this.cbxSecurityLevel.SelectedIndexChanged += new System.EventHandler(this.cbxSecurityLevel_SelectedIndexChanged); // // winformsMap1 // this.winformsMap1.BackColor = System.Drawing.Color.White; this.winformsMap1.Dock = System.Windows.Forms.DockStyle.Fill; this.winformsMap1.Location = new System.Drawing.Point(0, 0); this.winformsMap1.Name = "winformsMap1"; this.winformsMap1.Size = new System.Drawing.Size(740, 528); this.winformsMap1.TabIndex = 4; this.winformsMap1.Text = "winformsMap1"; // // AddAdditionalCustomPropertiesAndMethods // this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; this.Controls.Add(this.gbxFunctions); this.Controls.Add(this.winformsMap1); this.Name = "AddAdditionalCustomPropertiesAndMethods"; this.Size = new System.Drawing.Size(740, 528); this.Load += new System.EventHandler(this.AddAdditionalCustomPropertiesAndMethods_Load); this.gbxFunctions.ResumeLayout(false); 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.gbxDescrition = new System.Windows.Forms.GroupBox(); this.cbxStyle = new System.Windows.Forms.ComboBox(); this.winformsMap1 = new ThinkGeo.MapSuite.WinForms.WinformsMap(); this.gbxDescrition.SuspendLayout(); this.SuspendLayout(); // // gbxDescrition // this.gbxDescrition.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); this.gbxDescrition.Controls.Add(this.cbxStyle); this.gbxDescrition.Location = new System.Drawing.Point(587, 3); this.gbxDescrition.Name = "gbxDescrition"; this.gbxDescrition.Size = new System.Drawing.Size(150, 55); this.gbxDescrition.TabIndex = 1; this.gbxDescrition.TabStop = false; this.gbxDescrition.Text = "Predefined Common Styles"; // // cbxStyle // this.cbxStyle.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; this.cbxStyle.FormattingEnabled = true; this.cbxStyle.Items.AddRange(new object[] { "Country1", "Country2" }); this.cbxStyle.Location = new System.Drawing.Point(23, 19); this.cbxStyle.Name = "cbxStyle"; this.cbxStyle.Size = new System.Drawing.Size(108, 21); this.cbxStyle.TabIndex = 0; this.cbxStyle.SelectedIndex = 1; this.cbxStyle.SelectedIndexChanged += new System.EventHandler(this.cbxStyle_SelectedIndexChanged); // // winformsMap1 // this.winformsMap1.BackColor = System.Drawing.Color.White; this.winformsMap1.Dock = System.Windows.Forms.DockStyle.Fill; this.winformsMap1.Location = new System.Drawing.Point(0, 0); this.winformsMap1.Name = "winformsMap1"; this.winformsMap1.Size = new System.Drawing.Size(740, 528); this.winformsMap1.TabIndex = 2; this.winformsMap1.Text = "winformsMap1"; // // DrawUsingPredefinedCommonStyle // this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; this.Controls.Add(this.gbxDescrition); this.Controls.Add(this.winformsMap1); this.Name = "DrawUsingPredefinedCommonStyle"; this.Size = new System.Drawing.Size(740, 528); this.Load += new System.EventHandler(this.DrawUingPredefinedCommonStyle_Load); this.gbxDescrition.ResumeLayout(false); this.ResumeLayout(false); }
private void InitializeComponent() { this.groupBox1 = new System.Windows.Forms.GroupBox(); this.cbxShowLayer = new System.Windows.Forms.CheckBox(); this.winformsMap1 = new ThinkGeo.MapSuite.WinForms.WinformsMap(); this.groupBox1.SuspendLayout(); this.SuspendLayout(); // // groupBox1 // this.groupBox1.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); this.groupBox1.Controls.Add(this.cbxShowLayer); this.groupBox1.Location = new System.Drawing.Point(594, 3); this.groupBox1.Name = "groupBox1"; this.groupBox1.Size = new System.Drawing.Size(143, 51); this.groupBox1.TabIndex = 5; this.groupBox1.TabStop = false; this.groupBox1.Text = "Functions"; // // cbxShowLayer // this.cbxShowLayer.AutoSize = true; this.cbxShowLayer.Checked = true; this.cbxShowLayer.CheckState = System.Windows.Forms.CheckState.Checked; this.cbxShowLayer.Location = new System.Drawing.Point(17, 19); this.cbxShowLayer.Name = "cbxShowLayer"; this.cbxShowLayer.Size = new System.Drawing.Size(114, 17); this.cbxShowLayer.TabIndex = 0; this.cbxShowLayer.Text = "Show Image Layer"; this.cbxShowLayer.UseVisualStyleBackColor = false; this.cbxShowLayer.CheckedChanged += new System.EventHandler(this.cbxShowLayer_CheckedChanged); // // winformsMap1 // this.winformsMap1.BackColor = System.Drawing.Color.White; this.winformsMap1.Dock = System.Windows.Forms.DockStyle.Fill; this.winformsMap1.Location = new System.Drawing.Point(0, 0); this.winformsMap1.Name = "winformsMap1"; this.winformsMap1.Size = new System.Drawing.Size(740, 528); this.winformsMap1.TabIndex = 6; this.winformsMap1.Text = "winformsMap1"; // // HideOrShowARasterLayer // this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; this.AutoSize = true; this.Controls.Add(this.groupBox1); this.Controls.Add(this.winformsMap1); this.Name = "HideOrShowARasterLayer"; this.Size = new System.Drawing.Size(740, 528); this.Load += new System.EventHandler(this.ShowHideRasterLayer_Load); this.groupBox1.ResumeLayout(false); this.groupBox1.PerformLayout(); 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.buildSpatialIndexButton = new System.Windows.Forms.Button(); this.groupBox1 = new System.Windows.Forms.GroupBox(); this.winformsMap1 = new ThinkGeo.MapSuite.WinForms.WinformsMap(); this.groupBox1.SuspendLayout(); this.SuspendLayout(); // // buildSpatialIndexButton // this.buildSpatialIndexButton.ForeColor = System.Drawing.SystemColors.ControlDarkDark; this.buildSpatialIndexButton.Location = new System.Drawing.Point(16, 19); this.buildSpatialIndexButton.Name = "buildSpatialIndexButton"; this.buildSpatialIndexButton.Size = new System.Drawing.Size(115, 23); this.buildSpatialIndexButton.TabIndex = 1; this.buildSpatialIndexButton.Text = "Build Spatial Index"; this.buildSpatialIndexButton.UseVisualStyleBackColor = true; this.buildSpatialIndexButton.Click += new System.EventHandler(this.buildSpatialIndex_Click); // // groupBox1 // this.groupBox1.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); this.groupBox1.Controls.Add(this.buildSpatialIndexButton); this.groupBox1.Location = new System.Drawing.Point(590, 3); this.groupBox1.Name = "groupBox1"; this.groupBox1.Size = new System.Drawing.Size(147, 58); this.groupBox1.TabIndex = 2; this.groupBox1.TabStop = false; this.groupBox1.Text = "Functions"; // // winformsMap1 // this.winformsMap1.BackColor = System.Drawing.Color.White; this.winformsMap1.Dock = System.Windows.Forms.DockStyle.Fill; this.winformsMap1.Location = new System.Drawing.Point(0, 0); this.winformsMap1.Name = "winformsMap1"; this.winformsMap1.Size = new System.Drawing.Size(740, 528); this.winformsMap1.TabIndex = 3; this.winformsMap1.Text = "winformsMap1"; // // CreateASpatialIndexForAShapeFileFeatureLayer // this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; this.Controls.Add(this.groupBox1); this.Controls.Add(this.winformsMap1); this.Name = "CreateASpatialIndexForAShapeFileFeatureLayer"; this.Size = new System.Drawing.Size(740, 528); this.Load += new System.EventHandler(this.CreateASpatialIndexForAShapeFileLayer_Load); this.groupBox1.ResumeLayout(false); 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.gbxDescrition = new System.Windows.Forms.GroupBox(); this.label1 = new System.Windows.Forms.Label(); this.winformsMap1 = new ThinkGeo.MapSuite.WinForms.WinformsMap(); this.gbxDescrition.SuspendLayout(); this.SuspendLayout(); // // gbxDescrition // this.gbxDescrition.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); this.gbxDescrition.Controls.Add(this.label1); this.gbxDescrition.Location = new System.Drawing.Point(552, 3); this.gbxDescrition.Name = "gbxDescrition"; this.gbxDescrition.Size = new System.Drawing.Size(185, 77); this.gbxDescrition.TabIndex = 3; this.gbxDescrition.TabStop = false; this.gbxDescrition.Text = "Description"; // // label1 // this.label1.AutoSize = true; this.label1.Location = new System.Drawing.Point(7, 20); this.label1.Name = "label1"; this.label1.Size = new System.Drawing.Size(176, 52); this.label1.TabIndex = 0; this.label1.Text = "We highlight the countries which \r\nthe name is end with \"land\" \r\nby regular expre" + "ssion. Such as \r\nGreenland, New Zealand. Thailand."; // // winformsMap1 // this.winformsMap1.BackColor = System.Drawing.Color.White; this.winformsMap1.Dock = System.Windows.Forms.DockStyle.Fill; this.winformsMap1.Location = new System.Drawing.Point(0, 0); this.winformsMap1.Name = "winformsMap1"; this.winformsMap1.Size = new System.Drawing.Size(740, 528); this.winformsMap1.TabIndex = 4; this.winformsMap1.Text = "winformsMap1"; // // DrawFeaturesBasedRegularExpression // this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; this.Controls.Add(this.gbxDescrition); this.Controls.Add(this.winformsMap1); this.Name = "DrawFeaturesBasedRegularExpression"; this.Size = new System.Drawing.Size(740, 528); this.Load += new System.EventHandler(this.DrawFeaturesBasedRegexExpression_Load); this.gbxDescrition.ResumeLayout(false); this.gbxDescrition.PerformLayout(); 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.gbxDescrition = new System.Windows.Forms.GroupBox(); this.label1 = new System.Windows.Forms.Label(); this.winformsMap1 = new ThinkGeo.MapSuite.WinForms.WinformsMap(); this.gbxDescrition.SuspendLayout(); this.SuspendLayout(); // // gbxDescrition // this.gbxDescrition.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); this.gbxDescrition.Controls.Add(this.label1); this.gbxDescrition.Location = new System.Drawing.Point(525, 0); this.gbxDescrition.Name = "gbxDescrition"; this.gbxDescrition.Size = new System.Drawing.Size(212, 57); this.gbxDescrition.TabIndex = 3; this.gbxDescrition.TabStop = false; this.gbxDescrition.Text = "Description"; // // label1 // this.label1.AutoSize = true; this.label1.Location = new System.Drawing.Point(7, 20); this.label1.Name = "label1"; this.label1.Size = new System.Drawing.Size(194, 26); this.label1.TabIndex = 0; this.label1.Text = "The countries with a population of less \r\n than 10 millions people will not draw" + "."; // // winformsMap1 // this.winformsMap1.BackColor = System.Drawing.Color.White; this.winformsMap1.Dock = System.Windows.Forms.DockStyle.Fill; this.winformsMap1.Location = new System.Drawing.Point(0, 0); this.winformsMap1.Name = "winformsMap1"; this.winformsMap1.Size = new System.Drawing.Size(740, 528); this.winformsMap1.TabIndex = 4; this.winformsMap1.Text = "winformsMap1"; // // StopCertainFeaturesFromDrawing // this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; this.Controls.Add(this.gbxDescrition); this.Controls.Add(this.winformsMap1); this.Name = "StopCertainFeaturesFromDrawing"; this.Size = new System.Drawing.Size(740, 528); this.Load += new System.EventHandler(this.StopCertainFeaturesFromDrawing_Load); this.gbxDescrition.ResumeLayout(false); this.gbxDescrition.PerformLayout(); 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.dgridFeatures = new System.Windows.Forms.DataGridView(); this.btnGetAllFeatures = new System.Windows.Forms.Button(); this.winformsMap1 = new ThinkGeo.MapSuite.WinForms.WinformsMap(); ((System.ComponentModel.ISupportInitialize)(this.dgridFeatures)).BeginInit(); this.SuspendLayout(); // // dgridFeatures // this.dgridFeatures.AutoSizeColumnsMode = System.Windows.Forms.DataGridViewAutoSizeColumnsMode.Fill; this.dgridFeatures.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize; this.dgridFeatures.Dock = System.Windows.Forms.DockStyle.Bottom; this.dgridFeatures.Location = new System.Drawing.Point(0, 431); this.dgridFeatures.Name = "dgridFeatures"; this.dgridFeatures.ReadOnly = true; this.dgridFeatures.Size = new System.Drawing.Size(740, 97); this.dgridFeatures.TabIndex = 2; // // btnGetAllFeatures // this.btnGetAllFeatures.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); this.btnGetAllFeatures.Location = new System.Drawing.Point(621, 405); this.btnGetAllFeatures.Name = "btnGetAllFeatures"; this.btnGetAllFeatures.Size = new System.Drawing.Size(116, 23); this.btnGetAllFeatures.TabIndex = 34; this.btnGetAllFeatures.Text = "Get All Features"; this.btnGetAllFeatures.UseVisualStyleBackColor = true; this.btnGetAllFeatures.Click += new System.EventHandler(this.btnGetAllFeatures_Click); // // winformsMap1 // this.winformsMap1.BackColor = System.Drawing.Color.White; this.winformsMap1.Location = new System.Drawing.Point(0, 0); this.winformsMap1.Name = "winformsMap1"; this.winformsMap1.Size = new System.Drawing.Size(740, 401); this.winformsMap1.TabIndex = 35; this.winformsMap1.Text = "winformsMap1"; // // GetAllFeaturesFromAFeatureLayer // this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; this.Controls.Add(this.winformsMap1); this.Controls.Add(this.btnGetAllFeatures); this.Controls.Add(this.dgridFeatures); this.Name = "GetAllFeaturesFromAFeatureLayer"; this.Size = new System.Drawing.Size(740, 528); this.Load += new System.EventHandler(this.GetAllFeaturesFromAFeatureLayer_Load); ((System.ComponentModel.ISupportInitialize)(this.dgridFeatures)).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.groupBox1 = new System.Windows.Forms.GroupBox(); this.label1 = new System.Windows.Forms.Label(); this.winformsMap1 = new ThinkGeo.MapSuite.WinForms.WinformsMap(); this.groupBox1.SuspendLayout(); this.SuspendLayout(); // // groupBox1 // this.groupBox1.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); this.groupBox1.Controls.Add(this.label1); this.groupBox1.Location = new System.Drawing.Point(511, 0); this.groupBox1.Name = "groupBox1"; this.groupBox1.Size = new System.Drawing.Size(226, 44); this.groupBox1.TabIndex = 38; this.groupBox1.TabStop = false; this.groupBox1.Text = "Description"; // // label1 // this.label1.AutoSize = true; this.label1.Location = new System.Drawing.Point(6, 16); this.label1.Name = "label1"; this.label1.TabIndex = 0; this.label1.Text = "This sample shows how to move a image \r\nrepresent a plane accroding to route."; // // winformsMap1 // this.winformsMap1.BackColor = System.Drawing.Color.White; this.winformsMap1.Dock = System.Windows.Forms.DockStyle.Fill; this.winformsMap1.Location = new System.Drawing.Point(0, 0); this.winformsMap1.Name = "winformsMap1"; this.winformsMap1.Size = new System.Drawing.Size(740, 528); this.winformsMap1.TabIndex = 39; this.winformsMap1.Text = "winformsMap1"; // // EfficientlyMoveACarImage // this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; this.Controls.Add(this.groupBox1); this.Controls.Add(this.winformsMap1); this.Name = "EfficientlyMoveACarImage"; this.Size = new System.Drawing.Size(740, 528); this.Load += new System.EventHandler(this.EfficientlyMoveAPlaneImage_Load); this.ParentChanged += new EventHandler(EfficientlyMoveAPlaneImage_ParentChanged); this.groupBox1.ResumeLayout(false); this.groupBox1.PerformLayout(); 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.groupBox1 = new System.Windows.Forms.GroupBox(); this.btnBuffer = new System.Windows.Forms.Button(); this.winformsMap1 = new ThinkGeo.MapSuite.WinForms.WinformsMap(); this.groupBox1.SuspendLayout(); this.SuspendLayout(); // // groupBox1 // this.groupBox1.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); this.groupBox1.Controls.Add(this.btnBuffer); this.groupBox1.Location = new System.Drawing.Point(640, 3); this.groupBox1.Name = "groupBox1"; this.groupBox1.Size = new System.Drawing.Size(97, 55); this.groupBox1.TabIndex = 7; this.groupBox1.TabStop = false; this.groupBox1.Text = "Functions"; // // btnBuffer // this.btnBuffer.Location = new System.Drawing.Point(13, 20); this.btnBuffer.Name = "btnBuffer"; this.btnBuffer.Size = new System.Drawing.Size(75, 23); this.btnBuffer.TabIndex = 0; this.btnBuffer.Text = "Buffer"; this.btnBuffer.UseVisualStyleBackColor = true; this.btnBuffer.Click += new System.EventHandler(this.btnBuffer_Click); // // winformsMap1 // this.winformsMap1.BackColor = System.Drawing.Color.White; this.winformsMap1.Dock = System.Windows.Forms.DockStyle.Fill; this.winformsMap1.Location = new System.Drawing.Point(0, 0); this.winformsMap1.Name = "winformsMap1"; this.winformsMap1.Size = new System.Drawing.Size(740, 528); this.winformsMap1.TabIndex = 8; this.winformsMap1.Text = "winformsMap1"; // // CreateABufferAroundAFeature // this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; this.Controls.Add(this.groupBox1); this.Controls.Add(this.winformsMap1); this.Name = "CreateABufferAroundAFeature"; this.Size = new System.Drawing.Size(740, 528); this.Load += new System.EventHandler(this.CreateABufferAroundAFeature_Load); this.groupBox1.ResumeLayout(false); 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.groupBox1 = new System.Windows.Forms.GroupBox(); this.btnGetEnvelope = new System.Windows.Forms.Button(); this.winformsMap1 = new ThinkGeo.MapSuite.WinForms.WinformsMap(); this.groupBox1.SuspendLayout(); this.SuspendLayout(); // // groupBox1 // this.groupBox1.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); this.groupBox1.Controls.Add(this.btnGetEnvelope); this.groupBox1.Location = new System.Drawing.Point(600, -1); this.groupBox1.Name = "groupBox1"; this.groupBox1.Size = new System.Drawing.Size(137, 59); this.groupBox1.TabIndex = 8; this.groupBox1.TabStop = false; this.groupBox1.Text = "Functions"; // // btnGetEnvelope // this.btnGetEnvelope.Location = new System.Drawing.Point(13, 19); this.btnGetEnvelope.Name = "btnGetEnvelope"; this.btnGetEnvelope.Size = new System.Drawing.Size(118, 23); this.btnGetEnvelope.TabIndex = 1; this.btnGetEnvelope.Text = "Get Envelope"; this.btnGetEnvelope.UseVisualStyleBackColor = true; this.btnGetEnvelope.Click += new System.EventHandler(this.btnGetEnvelope_Click); // // winformsMap1 // this.winformsMap1.BackColor = System.Drawing.Color.White; this.winformsMap1.Dock = System.Windows.Forms.DockStyle.Fill; this.winformsMap1.Location = new System.Drawing.Point(0, 0); this.winformsMap1.Name = "winformsMap1"; this.winformsMap1.Size = new System.Drawing.Size(740, 528); this.winformsMap1.TabIndex = 9; this.winformsMap1.Text = "winformsMap1"; // // DetermineTheEnvelopeOfAFeature // this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; this.Controls.Add(this.groupBox1); this.Controls.Add(this.winformsMap1); this.Name = "DetermineTheEnvelopeOfAFeature"; this.Size = new System.Drawing.Size(740, 528); this.Load += new System.EventHandler(this.DetermineTheEnvelopOfAFeature_Load); this.groupBox1.ResumeLayout(false); 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.gbxDescrition = new System.Windows.Forms.GroupBox(); this.label1 = new System.Windows.Forms.Label(); this.winformsMap1 = new ThinkGeo.MapSuite.WinForms.WinformsMap(); this.gbxDescrition.SuspendLayout(); this.SuspendLayout(); // // gbxDescrition // this.gbxDescrition.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); this.gbxDescrition.Controls.Add(this.label1); this.gbxDescrition.Location = new System.Drawing.Point(480, -1); this.gbxDescrition.Name = "gbxDescrition"; this.gbxDescrition.Size = new System.Drawing.Size(257, 81); this.gbxDescrition.TabIndex = 4; this.gbxDescrition.TabStop = false; this.gbxDescrition.Text = "Description"; // // label1 // this.label1.AutoSize = true; this.label1.Location = new System.Drawing.Point(7, 20); this.label1.Name = "label1"; this.label1.Size = new System.Drawing.Size(251, 52); this.label1.TabIndex = 0; this.label1.Text = "This sample shows how to drag to copy a new\r\n marker and drag around.\r\n\r\n Tips: Shift + Drag to copy a marker on the map."; // // winformsMap1 // this.winformsMap1.BackColor = System.Drawing.Color.White; this.winformsMap1.Dock = System.Windows.Forms.DockStyle.Fill; this.winformsMap1.Location = new System.Drawing.Point(0, 0); this.winformsMap1.Name = "winformsMap1"; this.winformsMap1.Size = new System.Drawing.Size(740, 528); this.winformsMap1.TabIndex = 5; this.winformsMap1.Text = "winformsMap1"; // // AddMyOwnCustomDataToAFeatureLayer // this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; this.Controls.Add(this.gbxDescrition); this.Controls.Add(this.winformsMap1); this.Name = "AddMyOwnCustomDataToAFeatureLayer"; this.Size = new System.Drawing.Size(740, 528); this.Load += new System.EventHandler(this.Form_Load); this.gbxDescrition.ResumeLayout(false); this.gbxDescrition.PerformLayout(); 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.gbxDescrition = new System.Windows.Forms.GroupBox(); this.label1 = new System.Windows.Forms.Label(); this.winformsMap1 = new ThinkGeo.MapSuite.WinForms.WinformsMap(); this.gbxDescrition.SuspendLayout(); this.SuspendLayout(); // // gbxDescrition // this.gbxDescrition.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); this.gbxDescrition.Controls.Add(this.label1); this.gbxDescrition.Location = new System.Drawing.Point(555, 3); this.gbxDescrition.Name = "gbxDescrition"; this.gbxDescrition.Size = new System.Drawing.Size(182, 57); this.gbxDescrition.TabIndex = 2; this.gbxDescrition.TabStop = false; this.gbxDescrition.Text = "Description"; // // label1 // this.label1.AutoSize = true; this.label1.Location = new System.Drawing.Point(7, 20); this.label1.Name = "label1"; this.label1.Size = new System.Drawing.Size(165, 26); this.label1.TabIndex = 0; this.label1.Text = "The density of population of 1990\r\n for each state.\r\n"; // // winformsMap1 // this.winformsMap1.BackColor = System.Drawing.Color.White; this.winformsMap1.Dock = System.Windows.Forms.DockStyle.Fill; this.winformsMap1.Location = new System.Drawing.Point(0, 0); this.winformsMap1.Name = "winformsMap1"; this.winformsMap1.Size = new System.Drawing.Size(740, 528); this.winformsMap1.TabIndex = 3; this.winformsMap1.Text = "winformsMap1"; // // DrawFeaturesBasedOnDotDensity // this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; this.Controls.Add(this.gbxDescrition); this.Controls.Add(this.winformsMap1); this.Name = "DrawFeaturesBasedOnDotDensity"; this.Size = new System.Drawing.Size(740, 528); this.Load += new System.EventHandler(this.DrawDotDensityFeatures_Load); this.gbxDescrition.ResumeLayout(false); this.gbxDescrition.PerformLayout(); 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.groupBox1 = new System.Windows.Forms.GroupBox(); this.btnGetDistance = new System.Windows.Forms.Button(); this.winformsMap1 = new ThinkGeo.MapSuite.WinForms.WinformsMap(); this.groupBox1.SuspendLayout(); this.SuspendLayout(); // // groupBox1 // this.groupBox1.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); this.groupBox1.Controls.Add(this.btnGetDistance); this.groupBox1.Location = new System.Drawing.Point(579, 3); this.groupBox1.Name = "groupBox1"; this.groupBox1.Size = new System.Drawing.Size(158, 58); this.groupBox1.TabIndex = 6; this.groupBox1.TabStop = false; this.groupBox1.Text = "Functions"; // // btnGetDistance // this.btnGetDistance.Location = new System.Drawing.Point(6, 17); this.btnGetDistance.Name = "btnGetDistance"; this.btnGetDistance.Size = new System.Drawing.Size(146, 26); this.btnGetDistance.TabIndex = 24; this.btnGetDistance.Text = "Find Shortest Line"; this.btnGetDistance.UseVisualStyleBackColor = true; this.btnGetDistance.Click += new System.EventHandler(this.btnGetShortestLine_Click); // // winformsMap1 // this.winformsMap1.BackColor = System.Drawing.Color.White; this.winformsMap1.Dock = System.Windows.Forms.DockStyle.Fill; this.winformsMap1.Location = new System.Drawing.Point(0, 0); this.winformsMap1.Name = "winformsMap1"; this.winformsMap1.Size = new System.Drawing.Size(740, 528); this.winformsMap1.TabIndex = 7; this.winformsMap1.Text = "winformsMap1"; // // FindShortestLineBetweenTwoFeatures // this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; this.Controls.Add(this.groupBox1); this.Controls.Add(this.winformsMap1); this.Name = "FindShortestLineBetweenTwoFeatures"; this.Size = new System.Drawing.Size(740, 528); this.Load += new System.EventHandler(this.FindShortestLineBetweenTwoFeatures_Load); this.groupBox1.ResumeLayout(false); 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.gbxDescrition = new System.Windows.Forms.GroupBox(); this.label1 = new System.Windows.Forms.Label(); this.winformsMap1 = new ThinkGeo.MapSuite.WinForms.WinformsMap(); this.gbxDescrition.SuspendLayout(); this.SuspendLayout(); // // gbxDescrition // this.gbxDescrition.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); this.gbxDescrition.Controls.Add(this.label1); this.gbxDescrition.Location = new System.Drawing.Point(555, 3); this.gbxDescrition.Name = "gbxDescrition"; this.gbxDescrition.Size = new System.Drawing.Size(182, 57); this.gbxDescrition.TabIndex = 3; this.gbxDescrition.TabStop = false; this.gbxDescrition.Text = "Descrption"; // // label1 // this.label1.AutoSize = true; this.label1.Location = new System.Drawing.Point(7, 20); this.label1.Name = "label1"; this.label1.Size = new System.Drawing.Size(173, 26); this.label1.TabIndex = 0; this.label1.Text = "The feature where CNTRY_NAME \r\nis equal to \"United States\".\"\r\n"; // // winformsMap1 // this.winformsMap1.BackColor = System.Drawing.Color.White; this.winformsMap1.Dock = System.Windows.Forms.DockStyle.Fill; this.winformsMap1.Location = new System.Drawing.Point(0, 0); this.winformsMap1.Name = "winformsMap1"; this.winformsMap1.Size = new System.Drawing.Size(740, 528); this.winformsMap1.TabIndex = 4; this.winformsMap1.Text = "winformsMap1"; // // DrawAFeatureBasedOnAValue // this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; this.Controls.Add(this.gbxDescrition); this.Controls.Add(this.winformsMap1); this.Name = "DrawAFeatureBasedOnAValue"; this.Size = new System.Drawing.Size(740, 528); this.Load += new System.EventHandler(this.DrawAFeatureBasedOnAValue_Load); this.gbxDescrition.ResumeLayout(false); this.gbxDescrition.PerformLayout(); 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.lblLength = new System.Windows.Forms.Label(); this.gbxDescrition = new System.Windows.Forms.GroupBox(); this.winformsMap1 = new ThinkGeo.MapSuite.WinForms.WinformsMap(); this.gbxDescrition.SuspendLayout(); this.SuspendLayout(); // // lblLength // this.lblLength.AutoSize = true; this.lblLength.Location = new System.Drawing.Point(6, 26); this.lblLength.Name = "lblLength"; this.lblLength.Size = new System.Drawing.Size(191, 13); this.lblLength.TabIndex = 0; this.lblLength.Text = "Click on a road to get the length."; // // gbxDescrition // this.gbxDescrition.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); this.gbxDescrition.Controls.Add(this.lblLength); this.gbxDescrition.Location = new System.Drawing.Point(535, 3); this.gbxDescrition.Name = "gbxDescrition"; this.gbxDescrition.Size = new System.Drawing.Size(202, 57); this.gbxDescrition.TabIndex = 5; this.gbxDescrition.TabStop = false; this.gbxDescrition.Text = "Length (DecimalDegree, Meter)"; // // winformsMap1 // this.winformsMap1.BackColor = System.Drawing.Color.White; this.winformsMap1.Dock = System.Windows.Forms.DockStyle.Fill; this.winformsMap1.Location = new System.Drawing.Point(0, 0); this.winformsMap1.Name = "winformsMap1"; this.winformsMap1.Size = new System.Drawing.Size(740, 528); this.winformsMap1.TabIndex = 6; this.winformsMap1.Text = "winformsMap1"; // // DetermineTheLengthOfALineFeature // this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; this.Controls.Add(this.gbxDescrition); this.Controls.Add(this.winformsMap1); this.Name = "DetermineTheLengthOfALineFeature"; this.Size = new System.Drawing.Size(740, 528); this.Load += new System.EventHandler(this.DetermineTheLengthOfALineFeature_Load); this.gbxDescrition.ResumeLayout(false); this.gbxDescrition.PerformLayout(); 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.groupBox1 = new System.Windows.Forms.GroupBox(); this.btnUnion = new System.Windows.Forms.Button(); this.winformsMap1 = new ThinkGeo.MapSuite.WinForms.WinformsMap(); this.groupBox1.SuspendLayout(); this.SuspendLayout(); // // groupBox1 // this.groupBox1.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); this.groupBox1.Controls.Add(this.btnUnion); this.groupBox1.Location = new System.Drawing.Point(598, 3); this.groupBox1.Name = "groupBox1"; this.groupBox1.Size = new System.Drawing.Size(137, 60); this.groupBox1.TabIndex = 7; this.groupBox1.TabStop = false; this.groupBox1.Text = "Functions"; // // btnUnion // this.btnUnion.Location = new System.Drawing.Point(13, 20); this.btnUnion.Name = "btnUnion"; this.btnUnion.Size = new System.Drawing.Size(118, 23); this.btnUnion.TabIndex = 0; this.btnUnion.Text = "Union"; this.btnUnion.UseVisualStyleBackColor = true; this.btnUnion.Click += new System.EventHandler(this.btnUnion_Click); // // winformsMap1 // this.winformsMap1.BackColor = System.Drawing.Color.White; this.winformsMap1.Dock = System.Windows.Forms.DockStyle.Fill; this.winformsMap1.Location = new System.Drawing.Point(0, 0); this.winformsMap1.Name = "winformsMap1"; this.winformsMap1.Size = new System.Drawing.Size(740, 528); this.winformsMap1.TabIndex = 8; this.winformsMap1.Text = "winformsMap1"; // // FindUnionBetweenTwoFeatures // this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; this.Controls.Add(this.groupBox1); this.Controls.Add(this.winformsMap1); this.Name = "FindUnionBetweenTwoFeatures"; this.Size = new System.Drawing.Size(740, 528); this.Load += new System.EventHandler(this.FindUnionBetweenTwoFeatures_Load); this.groupBox1.ResumeLayout(false); 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.gbxDescrition = new System.Windows.Forms.GroupBox(); this.label1 = new System.Windows.Forms.Label(); this.winformsMap1 = new ThinkGeo.MapSuite.WinForms.WinformsMap(); this.gbxDescrition.SuspendLayout(); this.SuspendLayout(); // // gbxDescrition // this.gbxDescrition.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); this.gbxDescrition.Controls.Add(this.label1); this.gbxDescrition.Location = new System.Drawing.Point(410, -1); this.gbxDescrition.Name = "gbxDescrition"; this.gbxDescrition.Size = new System.Drawing.Size(327, 55); this.gbxDescrition.TabIndex = 4; this.gbxDescrition.TabStop = false; this.gbxDescrition.Text = "Description"; // // label1 // this.label1.AutoSize = true; this.label1.Location = new System.Drawing.Point(7, 20); this.label1.Name = "label1"; this.label1.Size = new System.Drawing.Size(321, 26); this.label1.TabIndex = 0; this.label1.Text = "This sample shows how to add an FeatureSourceMarkerOverlay\r\n and set its styles. Mouse hover to show its tooltip."; // // winformsMap1 // this.winformsMap1.BackColor = System.Drawing.Color.White; this.winformsMap1.Dock = System.Windows.Forms.DockStyle.Fill; this.winformsMap1.Location = new System.Drawing.Point(0, 0); this.winformsMap1.Name = "winformsMap1"; this.winformsMap1.Size = new System.Drawing.Size(740, 528); this.winformsMap1.TabIndex = 5; this.winformsMap1.Text = "winformsMap1"; // // AddMyOwnCustomDataToAFeatureLayer // this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; this.Controls.Add(this.gbxDescrition); this.Controls.Add(this.winformsMap1); this.Name = "AddMyOwnCustomDataToAFeatureLayer"; this.Size = new System.Drawing.Size(740, 528); this.Load += new System.EventHandler(this.Form_Load); this.gbxDescrition.ResumeLayout(false); this.gbxDescrition.PerformLayout(); 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.lblArea = new System.Windows.Forms.Label(); this.gbxDescrition = new System.Windows.Forms.GroupBox(); this.winformsMap1 = new ThinkGeo.MapSuite.WinForms.WinformsMap(); this.gbxDescrition.SuspendLayout(); this.SuspendLayout(); // // lblArea // this.lblArea.AutoSize = true; this.lblArea.Location = new System.Drawing.Point(31, 27); this.lblArea.Name = "lblArea"; this.lblArea.Size = new System.Drawing.Size(167, 13); this.lblArea.TabIndex = 0; this.lblArea.Text = "Click on map and select a country"; // // gbxDescrition // this.gbxDescrition.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); this.gbxDescrition.Controls.Add(this.lblArea); this.gbxDescrition.Location = new System.Drawing.Point(522, 3); this.gbxDescrition.Name = "gbxDescrition"; this.gbxDescrition.Size = new System.Drawing.Size(215, 57); this.gbxDescrition.TabIndex = 4; this.gbxDescrition.TabStop = false; this.gbxDescrition.Text = "Area (DecimalDegree, SquareKilometers)"; // // winformsMap1 // this.winformsMap1.BackColor = System.Drawing.Color.White; this.winformsMap1.Dock = System.Windows.Forms.DockStyle.Fill; this.winformsMap1.Location = new System.Drawing.Point(0, 0); this.winformsMap1.Name = "winformsMap1"; this.winformsMap1.Size = new System.Drawing.Size(740, 528); this.winformsMap1.TabIndex = 5; this.winformsMap1.Text = "winformsMap1"; // // DetermineTheAreaOfAnAreaFeature // this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; this.Controls.Add(this.gbxDescrition); this.Controls.Add(this.winformsMap1); this.Name = "DetermineTheAreaOfAnAreaFeature"; this.Size = new System.Drawing.Size(740, 528); this.Load += new System.EventHandler(this.DetermineTheAreaOfAAreaFeature_Load); this.gbxDescrition.ResumeLayout(false); this.gbxDescrition.PerformLayout(); 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.gbxDescrition = new System.Windows.Forms.GroupBox(); this.label1 = new System.Windows.Forms.Label(); this.winformsMap1 = new ThinkGeo.MapSuite.WinForms.WinformsMap(); this.gbxDescrition.SuspendLayout(); this.SuspendLayout(); // // gbxDescrition // this.gbxDescrition.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); this.gbxDescrition.Controls.Add(this.label1); this.gbxDescrition.Location = new System.Drawing.Point(524, 3); this.gbxDescrition.Name = "gbxDescrition"; this.gbxDescrition.Size = new System.Drawing.Size(213, 44); this.gbxDescrition.TabIndex = 4; this.gbxDescrition.TabStop = false; this.gbxDescrition.Text = "Description"; // // label1 // this.label1.AutoSize = true; this.label1.Location = new System.Drawing.Point(9, 20); this.label1.Name = "label1"; this.label1.Size = new System.Drawing.Size(193, 13); this.label1.TabIndex = 0; this.label1.Text = "Draw capitals based on different values"; // // winformsMap1 // this.winformsMap1.BackColor = System.Drawing.Color.White; this.winformsMap1.Dock = System.Windows.Forms.DockStyle.Fill; this.winformsMap1.Location = new System.Drawing.Point(0, 0); this.winformsMap1.Name = "winformsMap1"; this.winformsMap1.Size = new System.Drawing.Size(740, 528); this.winformsMap1.TabIndex = 5; this.winformsMap1.Text = "winformsMap1"; // // DrawFeaturesBasedOnValues // this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; this.Controls.Add(this.gbxDescrition); this.Controls.Add(this.winformsMap1); this.Name = "DrawFeaturesBasedOnValues"; this.Size = new System.Drawing.Size(740, 528); this.Load += new System.EventHandler(this.DrawFeaturesBasedOnValues_Load); this.gbxDescrition.ResumeLayout(false); this.gbxDescrition.PerformLayout(); 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.groupBox1 = new System.Windows.Forms.GroupBox(); this.btnHighlightAFeature = new System.Windows.Forms.Button(); this.winformsMap1 = new ThinkGeo.MapSuite.WinForms.WinformsMap(); this.groupBox1.SuspendLayout(); this.SuspendLayout(); // // groupBox1 // this.groupBox1.Controls.Add(this.btnHighlightAFeature); this.groupBox1.Location = new System.Drawing.Point(597, 3); this.groupBox1.Name = "groupBox1"; this.groupBox1.Size = new System.Drawing.Size(143, 57); this.groupBox1.TabIndex = 2; this.groupBox1.TabStop = false; this.groupBox1.Text = "Functions"; // // btnHighlightAFeature // this.btnHighlightAFeature.Location = new System.Drawing.Point(15, 19); this.btnHighlightAFeature.Name = "btnHighlightAFeature"; this.btnHighlightAFeature.Size = new System.Drawing.Size(112, 23); this.btnHighlightAFeature.TabIndex = 0; this.btnHighlightAFeature.Text = "Highlight A Feature"; this.btnHighlightAFeature.UseVisualStyleBackColor = true; this.btnHighlightAFeature.Click += new System.EventHandler(this.btnHighlightAFeature_Click); // // winformsMap1 // this.winformsMap1.BackColor = System.Drawing.Color.White; this.winformsMap1.Dock = System.Windows.Forms.DockStyle.Fill; this.winformsMap1.Location = new System.Drawing.Point(0, 0); this.winformsMap1.Name = "winformsMap1"; this.winformsMap1.Size = new System.Drawing.Size(740, 528); this.winformsMap1.TabIndex = 3; this.winformsMap1.Text = "winformsMap1"; // // HighlightAFeatureOnTheMap // this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; this.Controls.Add(this.groupBox1); this.Controls.Add(this.winformsMap1); this.Name = "HighlightAFeatureOnTheMap"; this.Size = new System.Drawing.Size(740, 528); this.Load += new System.EventHandler(this.HighlightAFeatureOnTheMap_Load); this.groupBox1.ResumeLayout(false); this.ResumeLayout(false); }
public OverlaySwitcher(IEnumerable <Overlay> overlays, WinformsMap map) { this.InitializeComponent(); this.mapControl = map; this.overlays = new Collection <Overlay>(); if (overlays != null) { foreach (var item in overlays) { this.overlays.Add(item); } } LoadUIs(); }
public void Refresh(FeatureLayer displayLayer, WinformsMap map) { FeatureLayer = displayLayer; Draw(map.CurrentScale); Controls.Clear(); Label LegendTitleLabel = new Label(); LegendTitleLabel.AutoSize = true; LegendTitleLabel.TextAlign = ContentAlignment.MiddleLeft; LegendTitleLabel.Location = new Point(5, 15); LegendTitleLabel.Text = Title; LegendTitleLabel.Font = new Font("Segoe UI", 12F, FontStyle.Regular, GraphicsUnit.Point, ((byte)(0))); Size textSize = TextRenderer.MeasureText(LegendTitleLabel.Text, LegendTitleLabel.Font); int maxPanelWidth = LegendTitleLabel.Location.X + textSize.Width; Controls.Add(LegendTitleLabel); int legendItemHeight = 55; foreach (var item in LegendItems.Where(i => i.Image != null && !string.IsNullOrEmpty(i.Title))) { PictureBox ItemImagePicture = new PictureBox(); ItemImagePicture.Location = new Point(10, legendItemHeight); ItemImagePicture.Size = item.Image.Size; ItemImagePicture.Image = item.Image; Label TextLabel = new Label(); TextLabel.AutoSize = true; TextLabel.Text = item.Title; TextLabel.Location = new Point(ItemImagePicture.Location.X + ItemImagePicture.Width + 10, legendItemHeight + ItemImagePicture.Height / 2 - 6); textSize = TextRenderer.MeasureText(TextLabel.Text, TextLabel.Font); maxPanelWidth = maxPanelWidth < TextLabel.Location.X + textSize.Width ? TextLabel.Location.X + textSize.Width : maxPanelWidth; legendItemHeight += ItemImagePicture.Height + 5; Controls.Add(ItemImagePicture); Controls.Add(TextLabel); } Location = new Point(Location.X, map.Height + map.Top - legendItemHeight - 9); Height = legendItemHeight + 10; Width = maxPanelWidth + 20; }
private void button1_Click(object sender, EventArgs e) { WinformsMap winformsMap1 = (WinformsMap)this.Parent; LayerOverlay layerOverlay = (LayerOverlay)winformsMap1.Overlays["PointOverlay"]; InMemoryFeatureLayer inMemoryFeatureLayer = (InMemoryFeatureLayer)layerOverlay.Layers[0]; inMemoryFeatureLayer.Open(); inMemoryFeatureLayer.EditTools.BeginTransaction(); PointShape pointShape = new PointShape(Convert.ToDouble(txtX.Text), Convert.ToDouble(txtY.Text)); inMemoryFeatureLayer.EditTools.Add(new Feature(pointShape)); inMemoryFeatureLayer.EditTools.CommitTransaction(); inMemoryFeatureLayer.Close(); winformsMap1.Refresh(layerOverlay); }
/// <summary> /// Required method for Designer support - do not modify /// the contents of this method with the code editor. /// </summary> private void InitializeComponent() { ThinkGeo.MapSuite.WinForms.EditInteractiveOverlay editInteractiveOverlay1 = new ThinkGeo.MapSuite.WinForms.EditInteractiveOverlay(); ThinkGeo.MapSuite.WinForms.ExtentInteractiveOverlay extentInteractiveOverlay1 = new ThinkGeo.MapSuite.WinForms.ExtentInteractiveOverlay(); ThinkGeo.MapSuite.WinForms.TrackInteractiveOverlay trackInteractiveOverlay1 = new ThinkGeo.MapSuite.WinForms.TrackInteractiveOverlay(); this.winformsMap1 = new ThinkGeo.MapSuite.WinForms.WinformsMap(); this.SuspendLayout(); // // winformsMap1 // this.winformsMap1.BackColor = System.Drawing.Color.Gray; this.winformsMap1.Dock = System.Windows.Forms.DockStyle.Fill; editInteractiveOverlay1.IsVisible = true; editInteractiveOverlay1.Name = null; this.winformsMap1.EditOverlay = editInteractiveOverlay1; extentInteractiveOverlay1.IsVisible = true; extentInteractiveOverlay1.Name = null; this.winformsMap1.ExtentOverlay = extentInteractiveOverlay1; this.winformsMap1.Location = new System.Drawing.Point(0, 0); this.winformsMap1.MapUnit = GeographyUnit.DecimalDegree; this.winformsMap1.MaximumScale = 80000000000000; this.winformsMap1.MinimumScale = 200; this.winformsMap1.Name = "winformsMap1"; this.winformsMap1.MapResizeMode = MapResizeMode.PreserveScale; this.winformsMap1.Size = new System.Drawing.Size(740, 528); this.winformsMap1.TabIndex = 0; this.winformsMap1.Text = "winformsMap1"; trackInteractiveOverlay1.IsVisible = true; trackInteractiveOverlay1.Name = null; trackInteractiveOverlay1.TrackMode = ThinkGeo.MapSuite.WinForms.TrackMode.None; this.winformsMap1.TrackOverlay = trackInteractiveOverlay1; this.winformsMap1.ZoomLevelSnapping = ThinkGeo.MapSuite.WinForms.ZoomLevelSnappingMode.Default; this.winformsMap1.ExtentOverlay.ZoomPercentage = 40; // // DisplayShapeMap // this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; this.Controls.Add(this.winformsMap1); this.Name = "DisplayShapeMap"; this.Size = new System.Drawing.Size(740, 528); this.Load += new System.EventHandler(this.DisplayMap_Load); 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.winformsMap1 = new ThinkGeo.MapSuite.WinForms.WinformsMap(); this.lblDescription = new System.Windows.Forms.Label(); this.SuspendLayout(); // // winformsMap1 // this.winformsMap1.BackColor = System.Drawing.Color.White; this.winformsMap1.Dock = System.Windows.Forms.DockStyle.Fill; this.winformsMap1.Location = new System.Drawing.Point(0, 0); this.winformsMap1.Name = "winformsMap1"; this.winformsMap1.Size = new System.Drawing.Size(740, 528); this.winformsMap1.TabIndex = 0; this.winformsMap1.Text = "winformsMap1"; // // lblDescription // this.lblDescription.BackColor = System.Drawing.Color.LightYellow; this.lblDescription.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F); this.lblDescription.Location = new System.Drawing.Point(3, 4); this.lblDescription.Name = "lblDescription"; this.lblDescription.Size = new System.Drawing.Size(300, 70); this.lblDescription.TabIndex = 1; this.lblDescription.Text = "To use the FleeBooleanStyle functions, you have to reference [Install-Path]\\Devel" + "oper Reference\\Spatial Extensions\\FleeStyle Extension\\FleeStyleExtension.dll and" + " Ciloci.Flee.dll. And in this sample, the highlight features are the landlocked " + "countries whose population is more than 10 million."; this.lblDescription.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; // // DisplayShapeMap // this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; this.Controls.Add(this.lblDescription); this.Controls.Add(this.winformsMap1); this.Name = "DisplayShapeMap"; this.Size = new System.Drawing.Size(740, 528); this.Load += new System.EventHandler(this.DisplayMap_Load); this.ResumeLayout(false); }
protected override void DrawCore(WinformsMap winformsMap) { LayerOverlay layerOverlay = new LayerOverlay(); if (!LoadingFromShapeFile) { foreach (var item in Layers) { layerOverlay.Layers.Add(item); } } else { if (!String.IsNullOrEmpty(firstShapeFilePathName)) { ShapeFileFeatureLayer.BuildIndexFile(firstShapeFilePathName, BuildIndexMode.DoNotRebuild); ShapeFileFeatureLayer firstInputShapeFileFeatureLayer = new ShapeFileFeatureLayer(firstShapeFilePathName); firstInputShapeFileFeatureLayer.ZoomLevelSet.ZoomLevel01.DefaultAreaStyle = AreaStyles.CreateSimpleAreaStyle(GeoColor.FromArgb(102, 0, 255, 0), GeoColor.FromArgb(255, 0, 255, 0), 2); firstInputShapeFileFeatureLayer.ZoomLevelSet.ZoomLevel01.DefaultLineStyle = LineStyles.CreateSimpleLineStyle(GeoColor.FromArgb(102, 0, 255, 0), 2, true); firstInputShapeFileFeatureLayer.ZoomLevelSet.ZoomLevel01.DefaultPointStyle = PointStyles.CreateSimpleCircleStyle(GeoColor.FromArgb(102, 0, 255, 0), 12); firstInputShapeFileFeatureLayer.ZoomLevelSet.ZoomLevel01.ApplyUntilZoomLevel = ApplyUntilZoomLevel.Level20; layerOverlay.Layers.Add(firstInputShapeFileFeatureLayer); } if (!String.IsNullOrEmpty(secondShapeFilePathName)) { ShapeFileFeatureLayer.BuildIndexFile(secondShapeFilePathName, BuildIndexMode.DoNotRebuild); ShapeFileFeatureLayer secondInputShapeFileFeatureLayer = new ShapeFileFeatureLayer(secondShapeFilePathName); secondInputShapeFileFeatureLayer.ZoomLevelSet.ZoomLevel01.DefaultAreaStyle = AreaStyles.CreateSimpleAreaStyle(GeoColor.FromArgb(102, 0, 0, 255), GeoColor.FromArgb(255, 0, 0, 255), 2); secondInputShapeFileFeatureLayer.ZoomLevelSet.ZoomLevel01.DefaultLineStyle = LineStyles.CreateSimpleLineStyle(GeoColor.FromArgb(102, 0, 0, 255), 2, true); secondInputShapeFileFeatureLayer.ZoomLevelSet.ZoomLevel01.DefaultPointStyle = PointStyles.CreateSimpleCircleStyle(GeoColor.FromArgb(102, 0, 0, 255), 12); secondInputShapeFileFeatureLayer.ZoomLevelSet.ZoomLevel01.ApplyUntilZoomLevel = ApplyUntilZoomLevel.Level20; layerOverlay.Layers.Add(secondInputShapeFileFeatureLayer); } layerOverlay.Layers.Add(OutputFeatureLayer); } winformsMap.Overlays.Clear(); winformsMap.Overlays.Add(layerOverlay); winformsMap.Refresh(); }