From 9c23284615ca096f695d5366c8a9dcce71fcbc5a Mon Sep 17 00:00:00 2001 From: Masashi Katsumata Date: Fri, 13 Nov 2026 16:58:27 -0800 Subject: [PATCH] Load the map stylesheets on the post office pages 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. --- .../src/pages/marker/postoffice/PostOfficeMapProvider.tsx | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/examples/basic/src/pages/marker/postoffice/PostOfficeMapProvider.tsx b/examples/basic/src/pages/marker/postoffice/PostOfficeMapProvider.tsx index cc42ded..d900924 100644 --- a/examples/basic/src/pages/marker/postoffice/PostOfficeMapProvider.tsx +++ b/examples/basic/src/pages/marker/postoffice/PostOfficeMapProvider.tsx @@ -7,9 +7,13 @@ import { type MarkerTilingOptions, } from '@mapconductor/js-sdk-core'; import { MapLibreDesign, MapLibreMapView2D, useMapLibreViewState } from '@mapconductor/react-for-maplibre'; +import '@mapconductor/react-for-maplibre/style.css'; import { MapboxDesign, MapBoxMapView2D, useMapboxViewState } from '@mapconductor/react-for-mapbox'; +import '@mapconductor/react-for-mapbox/style.css'; import { LeafletDesign, LeafletMapView, useLeafletMapViewState } from '@mapconductor/react-for-leaflet'; +import '@mapconductor/react-for-leaflet/style.css'; import { OpenLayersDesign, OpenLayersMapView, useOpenLayersMapViewState } from '@mapconductor/react-for-openlayers'; +import '@mapconductor/react-for-openlayers/style.css'; import { ArcGISDesign, ArcGISMapView, ArcGISMapView2D, useArcGISViewState } from '@mapconductor/react-for-arcgis'; import { AzureMapsDesign, AzureMapsMapView, useAzureMapsViewState } from '@mapconductor/react-for-azuremaps'; import '@mapconductor/react-for-azuremaps/style.css';