Map goto

From Sim Innovations Wiki
Jump to navigation Jump to search



map_goto is used to set the map location to a certain place on earth. This place is defined by using longitude and latitude. Use this website to determine the longitude and latitude of any place on earth.

Return value

This function won't return any value.


# Argument Type Description
1 map_id Number Map identifier. This number can be obtained by calling map_add.
2 lat Number The latitude to move the map to.
3 lon Number The longitude to move the map to.
 Note that Air Manager 2.1.3 and earlier have the lat and lon arguments reversed!


-- Place a map to your instrument using the openstreetmap cycle map and zoom level of 10
id = map_add(0,0,500,500,"OSM_CYCLE", 10)

-- Goto the beautiful city of Nijkerk, the Netherlands
map_goto(id, 52.222607, 5.485053)