Skip to content

Help formatting MVT #6381

Answered by nf-s
Joebjammin asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @Joebjammin

Currently, Terria requires that minimumZoom must be at least 1 - this is so we don't request more than 4 tiles when a catalog item is added to the map.

The rectangle property has also changed, it is now an object with west, south, east and north properties.

The following JSON works for me on the latest TerriaJS

By setting "minimumZoom": 1, - Terria will attempt to load vector tiles for zoom level 1 and 2 - even though they don't exist

{
      "id": "3",
      "name": "FL_COUNTY",
      "type": "mvt",
      "url": "FL_COUNTY/{z}/{x}/{y}.pbf",
      "layer": "FL_COUNTY",
      "minimumZoom": 1,
      "maximumZoom": 10,
      "fillColor": "orange",
      "lineColor": "yellow",…

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by Joebjammin
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants