Blog
How we build dynamic vector tiles from PostGIS, and what we learn along the way. New posts also go out on the RSS feed.
-
Putting a scanned map on a live map
MapSocket's new georeferencer turns an old survey, site plan or drone photo into map tiles. Here's how the fitting works and how we keep you honest about accuracy.
-
Where to put a polygon's label
Centroid, point on surface, or a point you already store. How MapSocket generates label points for polygon layers, and when to pick each one.
-
The tile bug that only browsers could see
Our tile proxy served perfect tiles to curl and broken ones to MapLibre. The cause was a gzip header that outlived its body.
-
Country lookups in under a millisecond
Every location update needs a country and state. A plain point-in-polygon query took 450 ms. Subdividing the boundaries brought it to about one.
-
Dynamic vector tiles straight from PostGIS
Why we built MapSocket, and how a row change in your database becomes a fresh tile on every open map within seconds.