From 4bc27a2fcae3c6ca50391b09df001f0418ee6437 Mon Sep 17 00:00:00 2001 From: Nathan Franklin Date: Wed, 8 Jan 2025 16:59:10 +0100 Subject: [PATCH] Enable `preferCanvas` option in MapContainer to improve rendering performance (#299) --- react/src/components/Map/Map.tsx | 1 + 1 file changed, 1 insertion(+) diff --git a/react/src/components/Map/Map.tsx b/react/src/components/Map/Map.tsx index 1558d424..c21c3f79 100644 --- a/react/src/components/Map/Map.tsx +++ b/react/src/components/Map/Map.tsx @@ -134,6 +134,7 @@ const LeafletMap: React.FC = ({ minZoom={MAP_CONFIG.minZoom} maxZoom={MAP_CONFIG.maxZoom} maxBounds={MAP_CONFIG.maxBounds} + preferCanvas={true} > {activeBaseLayers?.map((layer) => layer.type === 'wms' ? (