URI
<vectorMap_uri>/v2/vectortile/fonts/{fontstack}/{range}.pbf
Supported Methods
Parent Resource
Introduction
By performing a GET request on the fonts resource, you can obtain the Mapbox standard font source data in 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: Obtain font source data.
- HEAD: Check whether the fonts resource exists or whether the permission allows access to the fonts resource.
Supported Representation Format: pbf.
HTTP Request Method
Perform an HTTP request on the following URI, using the rjson output format as an example, where supermapiserver is the server name.
http://supermapiserver:8090/iserver/services/vectorMap-DLTB-public/restjsr/v2/vectortile/fonts/{fontstack}/{range}.pbf
GET Request
Obtain font source data.
Request Parameters
When performing a GET request on the fonts resource to obtain the Mapbox standard font source data in the specified style map, the relevant parameters need to be included in the URI. The parameters are as follows:
| Name | Type | Description |
| styleID | String | Vector tiles electronic map style ID, can provide multiple styles for the same service. |
Response Example
After executing the GET request on the URI http://supermapiserver:8090/iserver/services/vectorMap-DLTB-public/restjsr/v2/vectortile/fonts/SimSun/0-255.pbf?styleID=DLTB, a file in pbf format will be returned.
HEAD Request
Returns the same HTTP response headers as the GET request, but without a response body. It can obtain the metadata information contained in the response headers without needing to transmit the entire response content. The metadata information includes media type, character encoding, content encoding, entity content length, etc.
The HEAD request can be used to determine whether the fonts resource exists or whether the client has permission to access the fonts resource. By performing a HEAD request on the URI with .<format>, it can also quickly determine whether the fonts resource supports the <format> representation.
See Also
- vectorMap
- Constructing REST Requests on the Client
- Status Code List and Description
- Introduction to SuperMap iServer REST API Representation Formats
- Resource Hierarchy