The map object shows a map of the world. The map data is provided by any map server that delivers maps in a tile format where each map tile is an image of 256 x 256 pixels with Mercator projection. OpenStreetMap.org is one of the Internet services that delivers free maps in this format.
The map uses WGS84 as a geographical coordinate system, which is the same coordinate system that is used by the Global Positioning System - GPS. Coordinates used by the map are specified as longitude and latitude in decimal form.
The map can either be set to follow the GPS position provided by a GPS receiver, or to show the location of a specified coordinate. The zoom level of the map is a parameter that can be statically set or controlled by the timeline system. This allows for dynamic control over the scale of the map.
The map can display markers at given locations. These markers can be used for marking way points or points of interest etc. The location of the markers, and their properties, are retrieved from a data source that provides marker data in a specified database table format. Since the data, such as the location of the marker, is provided by a data source, the markers can dynamically update their location and data while a map is shown. This can be used to show the location of other moving objects in the world that have reported their position to the database.
Table 17.1. Marker data fields
Field Name | Data Type | Purpose |
---|---|---|
longitude | double | The longitude coordinate where to place the marker. |
latitude | double | The latitude coordinate where to place the marker. |
category | string | A category string that is used for giving the marker an icon on the map. The mapping between categories and icon images is done with the CategoryImages property. |
name | string | A text that is displayed on the marker. |
at_distance | double | Distance, in meter, when another GPS position is considered to be at the same location as this one. This distance is drawn as a transparent circle around marker. |
vicinity_distance | double | Distance, in meter, when another GPS position is considered to be in the vicinity of this location. This distance is drawn as a transparent circle around the marker. |
Table 17.2. Trail data fields
Field Name | Data Type | Purpose |
---|---|---|
longitude | double | The longitude coordinate where to place a trail break point. |
latitude | double | The latitude coordinate where to place a trail break point. |
Example 17.1. Example of a marker category image mapping that sets all markers with a category of 'red' to use the RedPin.png image and the marker with a category of 'blue' to use the BluePin.png image. All other markers will use the DefaultPin.png image.
default|DefaultPin.png;red|RedPin.png;blue|BluePin.png