v0.17.12
A day spent on the ground beneath the map: leaving CARTO, trying vector, and coming back to raster with the department cut out of it.
Changed
- The basemap left CARTO, which now stamps "API KEY REQUIRED" across its raster tiles. Measured on roughly four out of five tiles, at every zoom from 8 to 20. The free key offered in exchange never arrived.
- After a detour through OpenFreeMap vector tiles, the ground is raster again, served by the Géoplateforme IGN Plan — keyless, quota-free, and the reference map of the French state, which suits a departmental council. Vector was the wrong trade for a map of one department: its tiles weigh 189 KB apiece at zoom 8 against 59 KB for a raster tile, none shows until MapLibre has redrawn it whole, and MapLibre itself is a megabyte of JavaScript to fetch before the first image appears. Zooming out sat waiting on 2 268 KB where it now takes 175 KB. MapLibre GL and its Leaflet plugin have left the page, WebGL with them.
- Nothing is drawn outside Vaucluse, and nothing is fetched there either. The tile frame is a rectangle and the department is not, so the boundary is painted once into an offscreen canvas and every tile asks that mask whether it has anything to show: corner tiles are never requested, eleven instead of sixteen at the default view. What still spills past the frontier is covered by a flat sober colour, carried by the map container as well so the edge of the frame never shows. Zooming out below the point where the department fills the view is no longer possible.
- The IGN Plan is desaturated on the way in. A fine map and a talkative one — green relief, orange motorways, park outlines — none of which belongs behind accident clusters and traffic counts. A CSS filter takes the colour out, which the compositor does for free.
Added
- A waiting screen holds the map until it is actually there. The Géoplateforme takes around 0.8 s per tile, so the map area used to sit as a bare flat colour, indistinguishable from a page that had given up. A spinner now names what is being waited for, over the map only so the legend and header stay readable, and fades once both the tiles and the boundary are in place.
Fixed
- Opening a signpost no longer wipes the layer off the map. Clicking a directional signpost, then moving the map, left it bare at any zoom: the layer recognised its open popup through
map._popup, which Leaflet leaves pointing at the last popup long after it is closed, so the layer was frozen from the very first click. The same fault silenced the stop signs, the agglomeration signs and the webcams.
See the full CHANGELOG.