Skip to content

SYSTEM Cited by 1 source

Leaflet

What it is

Leaflet.js is an open-source JavaScript library for interactive web maps (leafletjs.com). It handles pan/zoom, layer composition, popups, and the tile-fetch lifecycle — request the tiles visible in the current viewport, swap them in as they arrive, drop tiles that leave the viewport.

Leaflet's core tile support is for raster tiles; the VectorGrid plugin (leaflet.github.io/Leaflet.VectorGrid) extends it to consume Mapbox Vector Tile PBF blobs, so clients can restyle features client-side without another round-trip to the server.

Seen in

  • sources/2021-12-01-zalando-maps-with-postgresql-and-postgis — Zalando uses Leaflet as the browser UI for a maps stack whose tiles come from pg_tileserv / systems/postgis and whose basemap is OpenStreetMap. Leaflet requests PBF tiles via the URL template ${BASE_URL}/tileserver/geo.boundaries_europe/{z}/{x}/{y}.pbf; VectorGrid parses the MVT and renders ~100k NUTS polygons at interactive framerate by relying on the tile grid rather than loading the full dataset. Deployed as a static site out of an nginx pod on Kubernetes. First wiki canonical page.
Last updated · 501 distilled / 1,218 read