Skip to content

Commit

Permalink
Enable preferCanvas option in MapContainer to improve rendering per…
Browse files Browse the repository at this point in the history
…formance (#299)
  • Loading branch information
nathanfranklin authored Jan 8, 2025
1 parent a0e4ab3 commit 4bc27a2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions react/src/components/Map/Map.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,7 @@ const LeafletMap: React.FC<LeafletMapProps> = ({
minZoom={MAP_CONFIG.minZoom}
maxZoom={MAP_CONFIG.maxZoom}
maxBounds={MAP_CONFIG.maxBounds}
preferCanvas={true}
>
{activeBaseLayers?.map((layer) =>
layer.type === 'wms' ? (
Expand Down

0 comments on commit 4bc27a2

Please sign in to comment.