Map.GetShape (gb.map)
Function GetShape ( Name As String ) As _MapShape
Seit 3.13
Returns an existing
_MapShape Layer object.
This is an alternative method to fetch Map array elements. This method returns a
_MapShape object, while fetching directly the Map array returns a
_MapLayer object.
-
Name - defines the Shape Layer name
Example:
Private hMap as New Map
Public Sub _New()
hMap.AddShape("MyShape")
hMap.GetShape("MyShape").Opacity = 0.3
hMap.GetShape("MyShape").AddPoint("MyPoint", MapPoint(48.86, 2.33))
End
Public Sub DrawingArea1_Draw()
hMap.Width = Draw.Width
hMap.Height = Draw.Height
hMap.Draw()
End
instead of
Private hMap as New Map
Public Sub _New()
hMap.AddShape("MyShape")
hMap["MyShape"].Opacity = 0.3
hMap["MyShape"].AddPoint("MyPoint", MapPoint(48.86, 2.33))
End
Public Sub DrawingArea1_Draw()
hMap.Width = Draw.Width
hMap.Height = Draw.Height
hMap.Draw()
End