Get Vector Style

Get Vector Style

GET

/api/v1/styles/base.json?token=<token string>

Description

Returns the vector style JSON for use in Mapbox and other map renderers which support vector rendering.

This URL should be used as the base style.

Query Parameters

  • token (Required): Vector Charts API token.
  • styleId: Identifier for a custom style.
  • theme: Set to day, dusk or night to change color schemes.
  • depthLimit: Sets the safety contour value in meters.
  • showEncBoundaries: Show an outline of the S-57 ENC chart cells.

Example Usage

in Mapbox GL JS:

const map = new mapboxgl.Map({
    ...
    style: "https://api.vectorcharts.com/api/v1/styles/base.json?token=<token>&theme=day&depthLimit=10"
});
Example Request
GET https://api.vectorcharts.com/api/v1/styles/base.json?token=a8652e5b659c41ed86c0b6717d8b0b3f&theme=day&depthLimit=10

Example Response
... style json document ...
VectorCharts.com © 2024, Full Hex Ventures, LLC · vectorcharts.com