Gambas Documentation - /comp/gb.map/map

/comp/gb.map/map

# Map (gb.map)

This class contain the drawing engine for the map.

After the initialization time, you have only to change the X, Y, Width and Height parameter and calling the draw procedure to draw a map where you want.

This is an example of how to initialize the map :

### Examples

    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

This class is creatable.
This class acts like a read-only array.
This class is enumerable with the FOR EACH keyword.

Static properties
Debug

Properties | Methods | Events
--- | --- | ---
Bounds Center Count Height Left MaxZoom PixelBox Top Width X Y Zoom | AddShape AddTile Draw Grab MapPointToPixelRel PixelToMapPointRel Refresh Resize | Draw Refresh