Adding a basemap
- Open the GIS configuration for your Rest Services site in the Configuration Editor.
- Under the MAPLETS node, browse to the maplet to which you're adding the basemap.
- Add a child LAYER node under the Maplet > MAP > LAYERS node.
- Add these attributes to the new LAYER node:
- basemap
- Set to True.
- id
- Specify the ID for the basemap.
- text
- Specify the display text for the basemap.
- type
- Specify app/layer-factory/ags-tile.
- url
- Optionally, specify the URL of the map service that provides the basemap. The URL is required if you are using WMTS.
- Add a child OPTIONS node to the LAYER node.
- Add these options to the OPTIONS node:
- layerType
-
Specify one of these options:
- For Bing Maps, specify bing.
Note: If you are using Bing Maps, you must specify your Bing API key on the Settings > GIS node of the Mobile configuration.
- For OSM, specify osm.
- For WMTS, specify wmts.
- Otherwise, specify tile.
- For Bing Maps, specify bing.
- visible
- Set to true or false to indicate whether the basemap is visible when the map is loaded.