Skip to content

Load the map stylesheets on the post office pages - #79

Merged
wf9a5m75 merged 1 commit into
developfrom
fix/postoffice-provider-styles
Nov 15, 2026
Merged

wf9a5m75 merged 1 commit into
developfrom
fix/postoffice-provider-styles

Conversation

@wf9a5m75

Copy link
Copy Markdown
Contributor

PostOfficeMapProvider imports the MapLibre, Mapbox, Leaflet and OpenLayers map views directly but not their style.css (it does import them for Azure Maps, Cesium and MapTiler). The pages only looked right when another page had already loaded the stylesheet.

Opened directly, /leaflet/post-office-cluster/en and /leaflet/post-office/en have no Leaflet rules: .leaflet-pane / .leaflet-tile compute to position: static, so only part of the tiles show and the 63 marker images sit at y≈3,200 px, below the map. OpenLayers loses its .ol-map sizing the same way (no base map).

Verified on a local production build: .leaflet-pane is absolute again and Leaflet and OpenLayers show the full base map with clusters. This is separate from the 54 s freeze, which is MapConductor/react-marker-clustering#13.

PostOfficeMapProvider imports the MapLibre, Mapbox, Leaflet and OpenLayers views directly but not their stylesheets, unlike the other providers it uses. Opened directly, /leaflet/post-office(-cluster) had no leaflet.css: tiles and markers were laid out statically, so only part of the map showed and the markers were thousands of pixels below the map. OpenLayers lost its .ol-map sizing the same way.
@wf9a5m75
wf9a5m75 merged commit bcbae24 into develop Nov 15, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant