URI
<vectorMap_uri>/v2/styles[.<format>]
Supported Methods
Parent Resource
Child Resources
Introduction
List of all styles configured in the Vectortiles Service V2. When accessed in HTML format, provides iClient for Leaflet to browse each style.
Supported methods:
- GET: Gets the list of all styles in the current service.
- HEAD: Checks whether the styles resource exists, or whether the permission allows accessing the styles resource.
Supported representation formats: RJSON, JSON, XML, HTML, JSONP.
HTTP Request Methods
Execute an HTTP request on the following URI. Take the json output format as an example, where supermapiserver is the server name.
http://supermapiserver:8090/iserver/services/vectorMap-DLTB-public/restjsr/v2/styles.json
GET Request
Gets the list of all styles configured in the current service.
Response Example
Execute a GET request on the styles resource: http://supermapiserver:8090/iserver/services/vectorMap-DLTB-public/restjsr/v2/styles.json, the returned result is as follows:
[
"DLTB"
]
HEAD Request
Returns the same HTTP response headers as a GET request, but without the response entity. It allows obtaining metadata info contained in the response message headers without having to transmit the entire response content. Metadata info includes media type, character encoding, compression encoding, entity content length, etc.
The HEAD request can be used to determine whether the styles resource exists, or whether the client has permission to access the styles resource. By executing a HEAD request on the URI with .<format>, it can also quickly determine whether the styles resource supports the representation in the <format> format.
See Also
- vectorMap, style
- Constructing REST Requests on the Client
- Status Code List and Description
- Introduction to SuperMap iServer REST API Representation Formats
- Resource Hierarchy