]> git.openstreetmap.org Git - chef.git/commitdiff
Add CyclOSM tile layer to wiki maps
authorTigerfell <43786020+Tigerfell@users.noreply.github.com>
Wed, 20 Jan 2021 20:16:07 +0000 (21:16 +0100)
committerGrant <github@firefishy.com>
Wed, 3 Feb 2021 14:12:42 +0000 (14:12 +0000)
cookbooks/wiki/templates/default/mw-ext-MultiMaps.inc.php.erb

index 47f319c30316a8330ce80cb72f5895b722cee17b..ddcfb62a78ce6397226b6f525d004913ce1dfbc3 100644 (file)
@@ -9,6 +9,11 @@ require_once "$IP/extensions/MultiMaps/MultiMaps.php";
 # denote different tiles within a BaseMapService
 $egMultiMaps_MapServices = [
   'Leaflet',
+  'cyclosm' => [
+    'service' => 'Leaflet',
+    'attribution' => '&copy; <a href="https://osm.org/copyright">OpenStreetMap contributors</a>. Tiles style by <a href="https://www.cyclosm.org/" target="_blank">CyclOSM</a> hosted by <a href="https://openstreetmap.fr/" target="_blank">OpenStreetMap France</a>',
+    'source' => 'https://{s}.tile-cyclosm.openstreetmap.fr/cyclosm/{z}/{x}/{y}.png',
+  ],
   'cycle' => [
     'service' => 'Leaflet',
     'attribution' => '&copy; <a href="https://osm.org/copyright">OpenStreetMap contributors</a>. Tiles courtesy of <a href="https://www.thunderforest.com/" target="_blank">Andy Allan</a>',