Basemaps¶
All versions have one or more basemaps (sometimes referred to as background maps). A basemap is made up of a layer source and a basemap definition.
Relevant tables¶
Table Name | Description |
---|---|
Basemap | Basic details about available basemaps |
LayerSource | Defines the source of the basemap |
VersionBasemap | Mapping between basemaps and versions, showing which basemaps are available in which version |
Basemap¶
A basemap first requires a layer source to be created that defines where the layer comes from.
Once this has been created, the basemap table has the following fields to fill in:
LayerSourceId
- TheId
from theLayerSource
tablePreviewImageURL
- A link to a suitable image that can be used in the preview window in the basemaps panel. This should be no more than 1000px wide and 200px tallBoundId
- TheId
from theBound
table that defines what the max extent of this basemap is. By setting this to a non-global bound, the user will not be able to pan outside the defined bounding box when this basemap is turned onMaxZoom
- The maximum zoom level this basemap can be used at. This will prevent the user from zooming beyond what the basemap is capable of showingMinZoom
- As above, but for the minimum
LayerSource¶
For more information on how to create a suitable layer source, check the Layer Source documentation
VersionBasemap¶
The VersionBasemap
table defines which basemaps are available in which versions.
VersionId
- TheId
from theVersions
tableBasemapId
- TheId
from theBasemap
tableIsDefault
- Boolean indicating whether this basemap is the default one for that versionDefaultOpacity
- The default opacity (or transparency) of the basemap between 0 (invisible) and 100 (opaque). Leave blank for default of 100DefaultSaturation
- The default saturation of the basemap between 0 (greyscale) and 100 (full colour). Leave blank for default of 100SortOrder
- The position the basemap will appear in the basemaps panel