Help formatting MVT #6381
-
Hi All, { |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
Hi @Joebjammin Currently, Terria requires that The The following JSON works for me on the latest TerriaJS By setting {
"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",
"rectangle": {
"west": -87.6348959282059781,
"south": 24.5210316754366957,
"east": -80.0313186453441432,
"north": 31.0001954218924993
}
} I believe the behavior of Version 8terriajs/lib/Map/ImageryProvider/ProtomapsImageryProvider.ts Lines 310 to 329 in fc33525 Version 7terriajs/lib/Map/MapboxVectorTileImageryProvider.js Lines 66 to 85 in a6a2e64 |
Beta Was this translation helpful? Give feedback.
-
Thank you. I appreciate your work! |
Beta Was this translation helpful? Give feedback.
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 withwest
,south
,east
andnorth
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