URI

<vectorMap_uri>/v2/vectortile/tiles/{z}/{x}/{y}.mvt

Supported Methods

GETHEAD

Parent Resource

vectorMap

Introduction

Perform a GET request on the tiles resource. The tile position is determined by the parameters in the URI, and the specified tile can be obtained.

Supported Methods:

  • GET: Get the specified tile.
  • HEAD: Check whether the tiles resource exists or whether the permission allows access to the tiles resource.

Supported Representation Format: mvt.

HTTP Request Method

Perform an HTTP request on the following URI, using the rjson output format as an example. Here, supermapiserver is the server name.

http://supermapiserver:8090/iserver/services/vectorMap-DLTB-public/restjsr/v2/vectortile/tiles/0/0/0.mvt

GET Request

Get the specified MVT tile. Determine the tile position in the URI.

Request Parameters

To perform a GET request on the tiles resource to obtain an MVT tile, include the relevant parameters in the URI. The parameters are as follows:

Name Type Description
z int Map zoom level.
x long Column number of the grid in the map, increasing from left to right. By default, tiles start from the top-left corner of the map with column number 0.
y long Row number of the grid in the map, increasing from top to bottom. By default, tiles start from the top-left corner of the map with row number 0.

Response Example

Perform a GET request: http://supermapiserver:8090/iserver/services/vectorMap-DLTB-public/restjsr/v2/vectortile/tiles/0/0/0.mvt, then a tile data with suffix .mvt will be obtained.

HEAD Request

Returns the same HTTP response headers as a GET request, but without a response entity. Metadata information contained in the response headers can be obtained without transferring the entire response content. The metadata includes media type, character encoding, compression encoding, entity content length, etc.

A HEAD request can be used to determine whether a tile resource exists or whether the client has permission to access the tile resource. By performing a HEAD request on the URI with .<format> appended, it can also quickly determine whether the tile resource supports the <format> representation.

See Also