3 ms·
Check this out for backend: https://postgis.net/docs/ST_AsMVT.html https://postgis.net/docs/ST_AsMVT.html if you can run ogr2ogr to import your data into PostGI
by Demiurge 4y ago
Check this out for backend:
https://postgis.net/docs/ST_AsMVT.html https://postgis.net/docs/ST_AsMVT.html
if you can run ogr2ogr to import your data into PostGIS, and serve the binary data returned by a query, you're all set. You literally only need PostGIS for a dynamic vector tile service.
Then mapboxgl or libremapjs on the frontend, or even OpenLayers.
- guwop 4y agoSo to get it straight: OSM.pbf file -> ogr2ogr -> PostGIS? I currently use a .mbtiles file and plug it into tileserver-gl, but i guess in theory you could just import OSM to PostGIS and then add the PostGIS as a source in tileserver-gl? That would be amazing