fix: add referrerPolicy to TileLayer to fix OSM tile blocking (#264)

OpenStreetMap requires a Referer header per their tile usage policy.
Without it, tiles are blocked with "Access blocked" error.
This commit is contained in:
Maurice
2026-04-01 12:17:53 +02:00
parent 4ebf9c5f11
commit e89ba2ecfc
2 changed files with 2 additions and 1 deletions

View File

@@ -485,6 +485,7 @@ export const MapView = memo(function MapView({
attribution='&copy; <a href="https://www.openstreetmap.org/copyright">OpenStreetMap</a>'
maxZoom={19}
keepBuffer={4}
referrerPolicy="strict-origin-when-cross-origin"
/>
<MapController center={center} zoom={zoom} />