doxa-maps/plugin-designs/upg-neighbor
Doxa Maps 64568ba685 My UPG Neighbors: the flat projection is applied on MapLibre too
Four lenses (send-map, lang-cluster, the cockpit's MapCell and FlowerClusters)
called setProjectionOn(m, 'mercator') straight after initializeMap(). MapLibre
throws "Style is not done loading" from setProjection before the style loads;
setProjectionOn swallows it and returns false, so on MapLibre the projection was
never set (rega, C2 at 0f136d25). Mapbox accepts it early, which is why only
one engine showed it.

A small plugin helper, src/whenStyleReady.js, runs the call at once if the style
has loaded, else on 'style.load'. Headless, against a MapLibre-shaped map that
throws before load, with the real setProjectionOn: before, it returns false and
the projection stays null; after, it is mercator, both when the style loads
later and when it is already loaded.
2026-09-26 12:14:41 +00:00
..
src My UPG Neighbors: the flat projection is applied on MapLibre too 2026-09-26 12:14:41 +00:00
index.html UPG Neighbor: build the five neighbor maps from source, not from a frozen IIFE in an iframe 2026-09-24 18:47:14 +00:00
index.js UPG Neighbor: build the five neighbor maps from source, not from a frozen IIFE in an iframe 2026-09-24 18:47:14 +00:00
upg-neighbor.instances.json Flower Mesh opens on an SVG lens: the leaf-engine gate stops expecting a canvas there 2026-09-26 04:21:49 +00:00
upg-neighbor.meta.json UPG Neighbor: build the five neighbor maps from source, not from a frozen IIFE in an iframe 2026-09-24 18:47:14 +00:00
upg-neighbor.vue My UPG Neighbors: the lenses' chrome speaks the reader's language 2026-09-26 03:34:29 +00:00