Description:
This sample illustrates how to construct a custom map graphic layer and add to Map Graphic Layer collection.
The points are collected from clicking on the map and then added to the custom layer. The Latitude and Longitude is converted based on spatial reference for this map.
Products: Server: C#
Platforms: WindowsRequires: Visual Studio 2005(SP1)/2008, .NET Framework 2.0
|
How to use:
-
Open the project in Visual Studio.
-
Click 'Open' button to open the map cache.
-
Click on the map to add points. Click 'Add Graphic Layer' to add to the map.
-
You can click 'Remove Layer' to remove the custom graphic layer from the map.
-
You can also click 'Clear Coordinate collection' to construct a new coordinate collection for the custom map graphic layer.