URI
<vectorMap_uri>/v2/styles/{styleID}[.<format>]
Supported Methods
Parent Resource
Introduction
A GET request to the style resource can retrieve the Mapbox standard style information of the specified style map. For detailed information, please refer to the Mapbox official website (http://www.mapbox.com/mapbox-gl-js/style-spec).
Supported Methods:
- GET: Retrieve the style information of the specified style map.
- PUT: Overall update of the style information for the current map.
- HEAD: Check whether the style resource exists, or whether the client has permission to access the style resource.
Supported Representation Formats: RJSON, JSON, XML, HTML, JSONP.
HTTP Request Method
Perform an HTTP request on the following URI, using the json output format as an example for illustration, where supermapiserver is the server name.
http://supermapiserver:8090/iserver/services/vectorMap-DLTB-public/restjsr/v2/styles/DLTB.json
GET Request
Retrieve the style information of the current map.
Response Example
Perform a GET request on the style resource: http://supermapiserver:8090/iserver/services/vectorMap-DLTB-public/restjsr/v2/styles/DLTB.json, and the result returned is as follows:
PUT Request
This request is used to update the overall style of the current map. It is possible to submit the entire style as a whole for updating the original style. An example of the style is shown below:
HEAD Request
Returns the same HTTP response headers as a GET request, but without a response body. It can obtain meta data information contained in the response message headers without transferring the entire response content. Meta data information includes media type, character encoding, compression encoding, entity content length, etc.
The HEAD request can be used to determine whether the serverInfo resource exists, or whether the client has permission to access the serverInfo resource. By executing a HEAD request on the URI with .<format>, it can also quickly determine whether the serverInfo resource supports representations in the <format> format.
See Also
- styles
- Construct REST Request from Client
- List and Description of Status Codes
- SuperMap iServer REST API Representation Format Introduction