List Named Layers

Description

Returns a list of named layers that are available within the repository.

ACL Authorization Flow

To list named layers within the repository, the user (or any roles they belong to) will need Execute permission on the named layers in the following manner:

  • “EXECUTE” for entity type “Location Intelligence.Named Resources”
Note: All the named maps or named layers are filtered from Jackrabbit search with EXECUTE permission.The response will contain those layers on which user has EXECUTE permission. If the user has no EXECUTE permissions on any layers then an empty list is returned.

HTTP GET URL Format

The following format is used for HTTP GET requests:


HTTP GET /layers.rep

Parameters

For information on the parameter types listed below, see Request URL Data Types.

Parameter Type Required Description
rep String yes The representation to be returned. Supported representation is JSON.

Returns

Returns a list of layers in the specified format.

Example

This example returns a list of available layers in the repository, as an array of String values.

http://www.pbbi.com/rest/Spatial/MappingService/layers.json

The following example shows the format of the JSON object returned in the response:


{
    "listNamedLayersResponse":
        {“namedLayersList”:[
        "/Samples/NamedLayers/WorldFeatureLayer",
        "/Samples/NamedLayers/WorldLabelLayers",
        "/Samples/NamedLayers/OceanFeatureLayer"
        ]
    }
}