map_add
Simulation Instrument Studio 1
Definition
map_id = map_add(x, y, width, height, source, zoom)
Remarks
Add a map (OpenStreetMap) to the instrument.
Example
No sample instrument calls this yet.
map_add()

Home›All functions›Map
Simulation Instrument Studio 1
Simulation Instrument Studio 1
map_id = map_add(x, y, width, height, source, zoom)
Add a map (OpenStreetMap) to the instrument.
No sample instrument calls this yet.
map_add()

Simulation Instrument Studio 1
map_goto(map_id, lat, lon)
Go to a certain location on earth.
| Name | Description |
|---|---|
map_id | Id returned by the call that created the object. |
lat | Latitude, in degrees. |
lon | Longitude, in degrees. |
No sample instrument calls this yet.
map_goto(map_id, lat, lon)

Simulation Instrument Studio 1
map_zoom(map_id, zoom)
Change the zoom level of a map.
| Name | Description |
|---|---|
map_id | Id returned by the call that created the object. |
zoom | Map zoom. 1 is the world, 17 is a street. |
No sample instrument calls this yet.
map_zoom(map_id, zoom)

Simulation Instrument Studio 1
map_baselayer(map_id, source)
Change the base layer of a map.
| Name | Description |
|---|---|
map_id | Id returned by the call that created the object. |
source | Where the value comes from. A layer name, or a map source tag. |
No sample instrument calls this yet.
map_baselayer(map_id, source)

Simulation Instrument Studio 1
layer_id = map_add_nav_img_layer(map_id, nav_type, filename, x, y, width, height)
Add an image layer to the map for a certain NAV source.
No sample instrument calls this yet.
map_add_nav_img_layer()

Simulation Instrument Studio 1
layer_id = map_add_nav_txt_layer(map_id, nav_type, nav_param, style, x, y, width, height)
Add a text layer to the map for a certain NAV source.
No sample instrument calls this yet.
map_add_nav_txt_layer()

Simulation Instrument Studio 1
layer_id = map_add_nav_canvas_layer(map_id, nav_type, x, y, width, height, draw_callback)
Add a canvas layer to the map for a certain NAV source.
No sample instrument calls this yet.
map_add_nav_canvas_layer()

Simulation Instrument Studio 1
map_nav_canvas_layer_draw(layer_id)
Redraw the canvas nav layer.
| Name | Description |
|---|---|
layer_id | Top position in instrument pixels. |
No sample instrument calls this yet.
map_nav_canvas_layer_draw(layer_id)
