From 2bfd6c7efdcfd373a50cea8fd058d6a01c6d296c Mon Sep 17 00:00:00 2001
From: danieldegroot2 <67521919+danieldegroot2@users.noreply.github.com>
Date: Sun, 7 Jul 2024 19:47:41 +0200
Subject: [PATCH] Update OpenStreetMap provider in Basemaps.js
I would like to suggest using the now preferred https://tile.openstreetmap.org URL instead of the current one (`{s}.`), see
https://github.com/openstreetmap/operations/issues/737
Also, changes attribution URL to HTTPS link (use direct links).
Furthermore, changes name to simply 'OpenStreetMap'. (use common name)
---
app/static/app/js/classes/Basemaps.js | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/app/static/app/js/classes/Basemaps.js b/app/static/app/js/classes/Basemaps.js
index b88636df2..400e3cab6 100644
--- a/app/static/app/js/classes/Basemaps.js
+++ b/app/static/app/js/classes/Basemaps.js
@@ -20,10 +20,10 @@ export default [
},
{
attribution:
- '© OpenStreetMap',
+ '© OpenStreetMap',
maxZoom: 21,
minZoom: 0,
- label: _("OSM Mapnik"),
- url: "//{s}.tile.openstreetmap.org/{z}/{x}/{y}.png"
+ label: _("OpenStreetMap"),
+ url: "//tile.openstreetmap.org/{z}/{x}/{y}.png"
}
];