3 ms·
Is there an OSS way to use vector tiles, without using Mapbox?
by preya2k 4y ago
Is there an OSS way to use vector tiles, without using Mapbox?
- mtmail 4y agoThe article covers that. See the "maplibre-gl-js for client-side rendering" section.
- rhodysurf 4y agoYes, just use tippecanoe to create your tiles, and serve them up via s3 or howerver else you want. Then client side render them with maplibregl
- Demiurge 4y agoCheck 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