Skip to content

Commit

Permalink
Update useLeafletMap.ts
Browse files Browse the repository at this point in the history
fix tile server URL for OpenStreetMap, see also openstreetmap/operations#737
  • Loading branch information
Strubbl authored and simon04 committed Sep 5, 2024
1 parent 89911f0 commit c7a189d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/components/useLeafletMap.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ export function useLeafletMap(mapRef: Ref<HTMLElement | null>) {
maxNativeZoom: 19
};
const layers = {
[osm]: L.tileLayer('http://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png', {
[osm]: L.tileLayer('http://tile.openstreetmap.org/{z}/{x}/{y}.png', {
...maxZoomOptions,
attribution:
'&copy; <a href="https://www.openstreetmap.org/copyright">OpenStreetMap</a> contributors'
Expand Down

0 comments on commit c7a189d

Please sign in to comment.