Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Check this out for backend: 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.



So 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




Consider applying for YC's Fall 2025 batch! Applications are open till Aug 4

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: