Adding a basemap

  1. Open the GIS configuration for your Rest Services site in the Configuration Editor.
  2. Under the MAPLETS node, browse to the maplet to which you're adding the basemap.
  3. Add a child LAYER node under the Maplet > MAP > LAYERS node.
  4. 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.
  5. Add a child OPTIONS node to the LAYER node.
  6. 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.
    visible
    Set to true or false to indicate whether the basemap is visible when the map is loaded.