Simulation Instruments

Home›All functions›Map

Map

Simulation Instrument Studio 1

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()
Photo slot: shots/map_add.png

map_goto

Simulation Instrument Studio 1

Definition

map_goto(map_id, lat, lon)

Remarks

Go to a certain location on earth.

Parameters

NameDescription
map_idId returned by the call that created the object.
latLatitude, in degrees.
lonLongitude, in degrees.

Example

No sample instrument calls this yet.

map_goto(map_id, lat, lon)
Photo slot: shots/map_goto.png

map_zoom

Simulation Instrument Studio 1

Definition

map_zoom(map_id, zoom)

Remarks

Change the zoom level of a map.

Parameters

NameDescription
map_idId returned by the call that created the object.
zoomMap zoom. 1 is the world, 17 is a street.

Example

No sample instrument calls this yet.

map_zoom(map_id, zoom)
Photo slot: shots/map_zoom.png

map_baselayer

Simulation Instrument Studio 1

Definition

map_baselayer(map_id, source)

Remarks

Change the base layer of a map.

Parameters

NameDescription
map_idId returned by the call that created the object.
sourceWhere the value comes from. A layer name, or a map source tag.

Example

No sample instrument calls this yet.

map_baselayer(map_id, source)
Photo slot: shots/map_baselayer.png

map_add_nav_img_layer

Simulation Instrument Studio 1

Definition

layer_id = map_add_nav_img_layer(map_id, nav_type, filename, x, y, width, height)

Remarks

Add an image layer to the map for a certain NAV source.

Example

No sample instrument calls this yet.

map_add_nav_img_layer()
Photo slot: shots/map_add_nav_img_layer.png

map_add_nav_txt_layer

Simulation Instrument Studio 1

Definition

layer_id = map_add_nav_txt_layer(map_id, nav_type, nav_param, style, x, y, width, height)

Remarks

Add a text layer to the map for a certain NAV source.

Example

No sample instrument calls this yet.

map_add_nav_txt_layer()
Photo slot: shots/map_add_nav_txt_layer.png

map_add_nav_canvas_layer

Simulation Instrument Studio 1

Definition

layer_id = map_add_nav_canvas_layer(map_id, nav_type, x, y, width, height, draw_callback)

Remarks

Add a canvas layer to the map for a certain NAV source.

Example

No sample instrument calls this yet.

map_add_nav_canvas_layer()
Photo slot: shots/map_add_nav_canvas_layer.png

map_nav_canvas_layer_draw

Simulation Instrument Studio 1

Definition

map_nav_canvas_layer_draw(layer_id)

Remarks

Redraw the canvas nav layer.

Parameters

NameDescription
layer_idTop position in instrument pixels.

Example

No sample instrument calls this yet.

map_nav_canvas_layer_draw(layer_id)
Photo slot: shots/map_nav_canvas_layer_draw.png