Open nf-s opened 3 years ago
Could be a simple alternative to GeoServer for vector-tile publishing
Hi @nf-s How can I add Tileserver gl (Mapbox style json) to terria basemap?
Hi @Youssef-Harby
Basemaps can be added to "Init files" - docs with examples are here https://github.com/TerriaJS/terriajs/blob/main/doc/customizing/initialization-files.md#basemaps
The supported properties for MapboxVectorTileCatalogItem
are here https://docs.terria.io/guide/connecting-to-data/catalog-type-details/mvt/
You can use the styleUrl
or the style
property with mapbox style JSON
Note - we are using protomaps.js to render MVT - and it only supports a subset of the mapbox style spec. At the moment TerriaJS and protomaps don't have documentation outlining supported mapbox styles - but you can find them in this file https://github.com/protomaps/protomaps.js/blob/master/src/compat/json_style.ts
Thank you so much @nf-s , Can you provide me an example? Tileserver gl url : http://45.85.147.39:8080/
https://github.com/t-rex-tileserver/t-rex/