From 320eae275056e6169c2f9d61c51463e1a82da515 Mon Sep 17 00:00:00 2001 From: David Drury Date: Sat, 21 May 2022 22:55:58 +0100 Subject: [PATCH 1/2] Add Humanitarian tile layer --- app/Module/OpenStreetMap.php | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/app/Module/OpenStreetMap.php b/app/Module/OpenStreetMap.php index 2b8036e39e6..d2d8a345044 100644 --- a/app/Module/OpenStreetMap.php +++ b/app/Module/OpenStreetMap.php @@ -86,6 +86,15 @@ public function leafletJsTileLayers(): array 'subdomains' => ['a', 'b', 'c'], 'url' => 'https://{s}.tile.openstreetmap.fr/osmfr/{z}/{x}/{y}.png', ], + (object) [ + 'attribution' => 'Map data ©Yohan Boniface & Humanitarian OpenStreetMap Team, contributors, CC-BY-SA', + 'default' => false, + 'label' => 'Humanitaire', + 'maxZoom' => 20, + 'minZoom' => 2, + 'subdomains' => ['a', 'b', 'c'], + 'url' => 'https://{s}.tile.openstreetmap.fr/hot/{z}/{x}/{y}.png', + ], ]; } } From fa3d5f4496c6845712516662426b40d1a5c4b65c Mon Sep 17 00:00:00 2001 From: David Drury Date: Sun, 22 May 2022 09:46:18 +0100 Subject: [PATCH 2/2] Change attribution url --- app/Module/OpenStreetMap.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Module/OpenStreetMap.php b/app/Module/OpenStreetMap.php index d2d8a345044..499c4621849 100644 --- a/app/Module/OpenStreetMap.php +++ b/app/Module/OpenStreetMap.php @@ -87,7 +87,7 @@ public function leafletJsTileLayers(): array 'url' => 'https://{s}.tile.openstreetmap.fr/osmfr/{z}/{x}/{y}.png', ], (object) [ - 'attribution' => 'Map data ©Yohan Boniface & Humanitarian OpenStreetMap Team, contributors, CC-BY-SA', + 'attribution' => 'Map data ©Yohan Boniface & Humanitarian OpenStreetMap Team, contributors, CC-BY-SA', 'default' => false, 'label' => 'Humanitaire', 'maxZoom' => 20,