Showing the OverView Map
This sample develops a plug-in that can draw custom arrow. In the Object Operations tab, a Arrow Drawing button will be added. If your layer is editable, click this button to draw arrows.
For developing, users need to draw custom graphics, such as five stars. The application supports to custom drawing graphics. And those models can be reused for map, layout, scene so as to realize 2D and 3D integration drawing.
Control/Object/Interface
Control/Object/Interface |
Property |
Methods |
ArrowDrawing |
IsCompleted |
CalculatePoint, Distance, GetArrow, VerifyInput, ParameterInputMethod, GetGeometry, GeometryDrawingTrackingResult |
CtrlAction |
FormClass |
Run() |
Application |
ActiveApplication, Output |
|
GeometryDrawing |
IsCompleted |
GetGeometry, VerifyInput |
IGeometryDrawingManager |
CurrentGeometryDrawing |
|
Basic Steps:
- Open CustomArrowDrawing.sln in the SuperMap Deskpro .NET SampleCode\CustomArrowDrawing\ folder with Microsoft Visual Studio 2008 and compile it.
- When succeeded, you can find two files generated: SuperMap.Desktop.CustomArrowDrawing.dll located in the SuperMap iDesktop 7C Bin\Plugins\ThemeStyleDesign folder and SuperMap.Desktop.CustomArrowDrawing.config located in the SuperMap iDesktop 7C WorkEnvironment\Default folder.
- Start SuperMap iDesktop 7C
- Open a datasource in current workspace.
- Create a new region dataset, and add the dataset to the map window.
- Keep the region data editable. In the Object Operations tab, click Draw Arrow.
- Draw any arrow in the editable layer.
Note
- When you successfully compile CustomArrowDrawing.sln, SuperMap.Desktop.CustomArrowDrawing.dll and SuperMap.Desktop.CustomArrowDrawing.config will be generated and copied to SuperMap iDesktop 7C\Bin\Plugins\CustomArrowDrawing and SuperMap iDesktop 7C\WorkEnvironment\Default respectively. Each time you start SuperMap iDesktop 7C, the OverViewMap plugin will be loaded.
- If you want to remove the OverViewMap plugin from SuperMap iDesktop 7C, you only need to delete SuperMap.Desktop.CustomArrowDrawing.config in the SuperMap iDesktop 7C\WorkEnvironment\Default folder.