Dragging Icon Advanced Sample for WinForms
Description
This project is a more complete version of a previous project “Dragging Icon”. In addition to showing how to use EditInteractiveOverlay for dragging and dropping features represented by an icon, we also show how to add new features on the map by left double clicking on the map. You will also see how to remove a feature by right double clicking on its icon.
Please refer to Wiki for the details.
Requirements
This sample makes use of the following NuGet Packages
About the Code
EditInteractiveOverlay editInteractiveOverlay = new EditInteractiveOverlay();
editInteractiveOverlay.DragControlPointsLayer.ZoomLevelSet.ZoomLevel01.DefaultPointStyle.IsActive = false;
editInteractiveOverlay.DragControlPointsLayer.ZoomLevelSet.ZoomLevel01.ApplyUntilZoomLevel = ApplyUntilZoomLevel.Level20;
editInteractiveOverlay.EditShapesLayer.ZoomLevelSet.ZoomLevel01.DefaultPointStyle.IsActive = false;
editInteractiveOverlay.EditShapesLayer.ZoomLevelSet.ZoomLevel01.DefaultLineStyle.IsActive = false;
editInteractiveOverlay.EditShapesLayer.ZoomLevelSet.ZoomLevel01.DefaultAreaStyle.IsActive = false;
ValueStyle valueStyle = new ValueStyle();
valueStyle.ColumnName = "Type";
PointStyle carPointStyle = new PointStyle(new GeoImage(@"..\..\Data\locale.png"));
carPointStyle.PointType = PointType.Bitmap;
PointStyle busPointStyle = new PointStyle(new GeoImage(@"..\..\Data\unknown.png"));
busPointStyle.PointType = PointType.Bitmap;Getting Help
Map Suite Desktop for Winforms Wiki Resources
Map Suite Desktop for Winforms Product Description
Key APIs
This example makes use of the following APIs:
- ThinkGeo.MapSuite.WinForms.EditInteractiveOverlay
- ThinkGeo.MapSuite.Styles.ValueStyle
- ThinkGeo.MapSuite.Styles.PointStyle
- ThinkGeo.MapSuite.Styles.PointType
About Map Suite
Map Suite is a set of powerful development components and services for the .Net Framework.
About ThinkGeo
ThinkGeo is a GIS (Geographic Information Systems) company founded in 2004 and located in Frisco, TX. Our clients are in more than 40 industries including agriculture, energy, transportation, government, engineering, software development, and defense.