TerriaJS / terriajs

A library for building rich, web-based geospatial data platforms.
https://terria.io
Apache License 2.0
1.18k stars 364 forks source link

Investigate t-rex vector tiles server #5868

Open nf-s opened 3 years ago

nf-s commented 3 years ago

https://github.com/t-rex-tileserver/t-rex/

nf-s commented 3 years ago

Could be a simple alternative to GeoServer for vector-tile publishing

Youssef-Harby commented 2 years ago

Hi @nf-s How can I add Tileserver gl (Mapbox style json) to terria basemap?

nf-s commented 2 years ago

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

Youssef-Harby commented 2 years ago

Thank you so much @nf-s , Can you provide me an example? Tileserver gl url : http://45.85.147.39:8080/