The problem
I’ve been creating and serving web-based maps such as this one for some time. That’s based on raster tiles, and an osm2pgsql database is used to store the data that the tiles are created from, on demand as a request to view a tile is made.
For various reasons I wanted to also create a similar map using vector tiles. With vector tiles what is sent to the client (such as a web…