Adding asset layers
- In the Configuration Editor, open the GIS configuration for your Rest Services site.
- Browse to the rhythm-civics-cdr-new-location-view node under the MAPLETS node.
- Add the MAP node under the rhythm-civics-cdr-new-location-view node.
- Add the LAYERS node under the MAP node.
-
Add a child LAYER node under the
LAYERS node and specify this
information:
- assetType
- Specify the code for the asset type.
- basemap
- Specify False.
- componentType
- Specify Hansen.AssetManagement.Asset.
- disabled
- Specify False.
- id
- Specify the ID of the layer in the map service.
- text
- Specify the display text that you want to show for the layer.
- type
- Specify app/layer-factory/arcgis-tile.
- url
- Specify the URL of the map service.
We recommend that you use the same URL that is specified for the primary map server under the LOCALIZATIONS node for the rhythm-base maplet. Copy the Value attribute from the primary_mapserver_url node under LOCALIZATIONS > Resources.
- Add a child OPTIONS node under the LAYER node.
-
Add three option nodes under the OPTIONS node, with these attributes:
- id: layerType; value: rest
- id: showLayers; value: Specify the index of the layer that you want to show.
- id: visible; value: true
- Save your changes.