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.

  1. 3 min read

    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.

  2. 2 min read

    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.

  3. 2 min read

    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.

  4. 2 min read

    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.

  5. 2 min read

    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.