|
This sample shows how you can use Map Shapes to draw state capitols on the map
with just a longitude and latitude coordinate. Map
Shapes work great for displaying dynamic map data or map data that
doesn't exist in the shape file. In the example below you can click on
any of the blue squares and the name of the state capitol will be displayed in
the top right hand corner of the map. This is done by setting the map to
SelectMapShapes mode which allows you to capture the selected map shape in
the SelectMapShapes event raised by the map.
Try it out by clicking any of blue squares.
Note: If you use track zoom or panning you will need to click the
information button on the toolbar to set the map back to SelectMapShapes mode.
|