[[PageOutline]]
= Introduction =
A map object describes the parts required to display a map in Rappture. A
map may have several sources of information that when put together are
displayed as a map.
{{{
My Map
Description of Map
projected
global-mercator
-118.281
34.4402
562.291
-30.1011
-20.2908
538181
...
...
...
...
}}}
Maps must have one or more '''''' subelements.
''''''::
This is the label of the map. It's used to label the output of the map in Rappture's drop down list of outputs.
''''''::
This is a longer description of the map. It is used for the tool tip on Rappture's drop down list of outputs.
''''''::
This string should include any data copyright attributions required that aren't included in specific layer attributions.
''''''::
'geocentric' or 'projected'. Geocentric is a 3D Earth model using ECEF coordinates, otherwise (the default) use a 2D projection defined by the projection element.
''''''::
Defines the projection of the map if type is 'projected' (for geocetric maps this should be omitted). All layers should ideally be in this projection, but any layers that are not will be re-projected. If not specified, the map projection will be the Spherical Mercator (aka Web Mercator) projection. The projection can be an EPSG code in the form "epsg:n" where n is a number, or it can be a PROJ4 command-line string.
''''''::
This specifies the output extent of the map (i.e.the bounding box of the map). Any data in layers beyond these extents will not be visible. The '''''' values are given in this format: , with spaces separating each value. This needs to be in the same projection and units as the map, i.e. the projection specified in the projection element.
''''''::
The following camera parameter elements may be used to set the initial camera view of the map.
''''''::
Used without other camera parameters, the value for this parameter is the ID of the layer whose extent should be used to set the camera.
'''''','''''','''''',''''''::
Used without other camera parameters, these parameters specify the extent to be used to set the camera, in map SRS.
''''''::
Easting map coordinate of focal point in map SRS.
''''''::
Northing map coordinate of focal point in map SRS.
''''''::
Alternative to coordinate, in WGS84.
''''''::
Alternative to coordinate, in WGS84.
''''''::
If specified, sets altitude of focal point in map vertical datum.
''''''::
Distance of camera to focal point in meters.
''''''::
If specified, sets compass heading angle in degrees (range: -180 to 180, use 0 for North up).
''''''::
If specified, sets pitch angle in degrees of camera (range: -90 to -10, use -90 for top down view).
''''''::
If specified, indicates other parameters (horizontal coordinate system) are given in this spatial reference system (SRS).
''''''::
If specified, indicates other parameters (vertical coordinate system) are given relative to this vertical datum.
'''
}}}
For layers of type 'feature', styles follow the OSGEarth format. A tag contains a of CSS-formatted style definitions. Optionally, a set of tags may be defined with a to select a
area < 4
area >= 4
}}}
=== Selectors ===
'''
5
}}}
''''''::
This is a list of alternating attribute IDs and attribute labels (labels with spaces need to be quoted).
'''