| Platform: | MapWindow |
| Task: | Draw a point on a map |
| Discussion: | Sometimes you need to just draw spatially referenced points on a map without the bother of a shapefile. |
| Example: | Public Sub LoadPoint(ByVal Latitude As Double, ByVal Longitude As Double, ByVal Map As AxMapWinGIS.AxMap)
Dim hndl As Integer
hndl = Map.NewDrawing(MapWinGIS.tkDrawReferenceList.dlSpatiallyReferencedList)
Map.DrawCircle(Longitude, Latitude, 20, System.Convert.ToUInt32(RGB(255, 0, 0)), True)
End Sub |