Get Vector Tile
Get Vector Tile
/api/v2/tiles/enc-v2/{z}/{x}/{y}.mvt
Description
Returns a Mapbox Vector Tile containing rendered chart data for the given XYZ tile coordinates. Each tile combines basemap geometry, ENC features from all overlapping cells, and runtime layers into a single protobuf payload.
Renderers do not usually call this endpoint directly. Instead, point Mapbox or another vector-capable renderer at the vector style endpoint, which references this URL internally.
Authentication
This endpoint accepts a Bearer token in the Authorization header or a token query parameter. See Authentication for details.
Path Parameters
- z: Zoom level. Must be between
0and16inclusive. - x: Tile column.
- y: Tile row.
Response
On success, returns a binary MVT protobuf with Content-Type: application/x-protobuf. The tile is empty (no layers) outside of charted areas.
Error Responses
- 400 Bad Request: The
z,x, oryparameter is out of range, orzis greater than16. - 401 Unauthorized: The token is missing or not valid.
Example Request GET https://<your-host>:9909/api/v2/tiles/enc-v2/12/1240/1515.mvt Authorization: Bearer <token> Example Response Status Code: 200 OK Content-Type: application/x-protobuf ... binary MVT protobuf ...