Map (gb.map)
This class acts like the drawing engine for the map.
After the initialization time, you only have to change the X, Y, Width and Height properties and call the
Draw method to draw a map anywhere.
Statische eigenschappen
Debug
|
Returns or sets the Debug messages
|
Eigenschappen
Bounds
|
Returns the lat/lon coordinates at the limits of the drawed map.
|
Center
|
Returns or sets the center point of the map
|
Count
|
Returns the number of Map Layers, both _MapShape and _MapLayer layers.
|
DefaultCache
|
Returns or sets the default cache path for storing Tiles Layer files.
|
Height
|
|
Left
|
|
MaxZoom
|
Returns or sets the maximum Map zoom level
|
PixelBox
|
|
Proxy
|
Returns an _MapProxy virtual object used for defining Proxy and Authentication parameters.
|
Top
|
|
Width
|
|
X
|
|
Y
|
|
Zoom
|
Returns or sets the actual Map zoom level
|
Methode
Gebeurtenissen
Examples
This is an example of how to initialize the map:
Private hMap as New Map
Public Sub _New()
With hMap.AddTile("OpenStreet", "http://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png")
.Copyright = "OpenStreetMap contributors"
End With
End
Public Sub DrawingArea1_Draw()
hMap.Width = Draw.Width
hMap.Height = Draw.Height
hMap.Draw()
End