List Named Maps

Description

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

ACL Authorization Flow

To list all the named maps stored in a repository, the user (or the role they belong to) needs EXECUTE permission on the Named table.

Note: All the named maps or named layers are filtered from the Jackrabbit search with EXECUTE permission. The response will contain those layers on which the user has EXECUTE permission. If the user has no EXECUTE permissions on any layers, then the response returns an empty list.

HTTP GET URL Format

The following format is used for HTTP GET requests:

HTTP GET /maps.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 maps in the specified format.

Example

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

http://hostname:port/rest/Spatial/MappingService/maps.json

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

{
    "Maps":
    [
        "/Samples/NamedMaps/MapWithBarLayer",
        "/Samples/NamedMaps/CountriesWithShapeTable",
        "/Samples/NamedMaps/MapWithLayerStyle",
        "/Samples/NamedMaps/MapWithLayer",
        "/Samples/NamedMaps/MapWithPieLayer",
        "/Samples/NamedMaps/WorldMap",
        "/Samples/NamedMaps/WorldWithGradSymLayer",
        "/Samples/NamedMaps/MapWithTable"
    ]
}