esriLayers | R Documentation |
Retrieve JSON for all layers and tables as specified in https://si-pweb-vecmap.si.edu/vectormap/sdk/rest/index.html#/All_Layers_and_Tables/02ss0000005t000000/. Service type must either be a MapServer or FeatureServer. Performs a POST request towards the server url in one of the following the forms:
https://<host>/<instance>/rest/services/<folderName>/serviceName>/MapServer/layers
https://<host>/<instance>/rest/services/serviceName>/MapServer/layers
https://<host>/<instance>/rest/services/<folderName>/serviceName>/FeatureServer/layers
https://<host>/<instance>/rest/services/serviceName>/FeatureServer/layers
esriLayers(url, token = "")
url |
The url for the Map/Feature server. If given a url specifying a layer or table ID it will truncate it. |
token |
String for authentication token (if needed). |
A list from the JSON return.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.