A map node. It draws tiles for a lat, lon, and zoom.
Parameters
#
Name
Type
Description
1
x
Number
This is the most left point of the canvas where your map should be shown.
2
y
Number
This is the most top point of the canvas where your map should be shown.
3
width
Number
The map width in pixels.
4
height
Number
The map height in pixels.
5
base_layer
String
The openstreetmap base layer to use. See available base layers below. Use 'nil' if you don't want any base layer at all.
6
zoom
Number
The openstreemap zoom level. This value can normally range from 1 (whole earth) to 16 (closest to earth). This value is dependent on the base layer source type defined above.
Base layers
Tag
Name
Zoom
OSM_STANDARD
OpenStreetMap
1–17
OSM_CYCLE
Cycle map
1–17
OSM_TRANSPORT
Transport map
1–17
OSM_HUMANITARIAN
Humanitarian map
1–17
Example
-- Moving map, cycle layer, zoomed to a city
chart = map_add(0, 0, 400, 300, "OSM_CYCLE", 11)
Photo slot: shots/map_add.png
map_add_nav_canvas_layer
Simulation Instrument Studio 1
Overloads
map_add_nav_canvas_layer(map_id, nav_type, x, y, width, height, draw_callback)
A map node. It draws tiles for a lat, lon, and zoom.
Parameters
#
Name
Type
Description
1
map_id
Number
The map_id to add the layer to. A map_id can be fetched by using function map_add.
A map node. It draws tiles for a lat, lon, and zoom.
Parameters
#
Name
Type
Description
1
map_id
Number
Map identifier. This number can be obtained by calling map_add.
2
zoom
Number
The openstreemap zoom level. This value can normally range from 1 (whole earth) to 16 (closest to earth). This value is dependent on the base layer source type defined above.
Example
-- Close enough to read the runways at KMSPmap_zoom(chart, 13)
Photo slot: shots/map_zoom.png
video_stream_add
Simulation Instrument Studio 1
Overloads
video_stream_add(key, x, y, width, height)
video_stream_add(key, x, y, width, height, tex_x, tex_y, tex_width, tex_height)
A video node. It shows a stream in the instrument rectangle.
Parameters
#
Name
Type
Description
1
key
String
Video stream key, this key is used to determine which video stream you wish to show. See stream keys below.
2
x
Number
Left point of the canvas where your video stream should be shown.
3
y
Number
Top point of the canvas where your video stream should be shown.
4
width
Number
The video stream width on the canvas.
5
height
Number
The video stream height on the canvas.
6
tex_x
Number
(Optional) Left point of texture viewport.
7
tex_y
Number
(Optional) Top point of texture viewport.
8
tex_width
Number
(Optional) Width of texture viewport.
9
tex_height
Number
(Optional) Height of texture viewport.
Stream keys
Key
Source
xpl/panel
X-Plane 12 panel texture.
xpl/gauges[0]
Gauges texture 0.
xpl/gauges[1]
Gauges texture 1.
xpl/GNS430_1
First GNS 430.
xpl/GNS530_1
First GNS 530.
xpl/CDU739_1
Captain CDU.
xpl/G1000_PFD_1
G1000 PFD.
Example
-- X-Plane G1000 PFD, in the bezel we drew
pfd = video_stream_add("xpl/G1000_PFD_1", 12, 12, 400, 300)
Example: a crop of the gauges texture
-- Full PFD
pfd = video_stream_add("xpl/G1000_PFD_1", 12, 12, 400, 300)
-- Only the attitude window inside the gauges texture
attitude = video_stream_add("xpl/gauges[0]", 12, 12, 200, 200, 80, 40, 240, 180)
Photo slot: shots/video_stream_add.png
video_stream_ext_add
Simulation Instrument Studio 1
Overloads
video_stream_ext_add(tag, key, x, y, width, height)
video_stream_ext_add(tag, key, x, y, width, height, tex_x, tex_y, tex_width, tex_height)
A video node. It shows a stream in the instrument rectangle.
Parameters
#
Name
Type
Description
1
tag
String
Video stream source tag. This is the name configured for the stream.
2
key
String
Video stream key, this key is used to determine which video stream you wish to show.
3
x
Number
Left point of the canvas where your video stream should be shown.
4
y
Number
Top point of the canvas where your video stream should be shown.
5
width
Number
The video stream width on the canvas.
6
height
Number
The video stream height on the canvas.
7
tex_x
Number
(Optional) Left point of texture viewport.
8
tex_y
Number
(Optional) Top point of texture viewport.
9
tex_width
Number
(Optional) Width of texture viewport.
10
tex_height
Number
(Optional) Height of texture viewport.
Example
-- A texture the aircraft published
mfd = video_stream_ext_add("G1000", "MFD", 0, 0, 512, 384)