From 72f068ce76bf926fc65761c88ac12c6bb4f44f39 Mon Sep 17 00:00:00 2001 From: "Phyks (Lucas Verney)" Date: Sun, 6 Oct 2019 15:24:25 +0200 Subject: [PATCH] Use CyclOSM as default map for French users --- layers/config/config.js | 2 +- layers/config/overrides.js | 7 ++++++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/layers/config/config.js b/layers/config/config.js index 2a9df28..4cc3312 100644 --- a/layers/config/config.js +++ b/layers/config/config.js @@ -10,7 +10,7 @@ BR.confLayers.defaultBaseLayers = [ // worldwide monolingual layers to add as default when browser language matches BR.confLayers.languageDefaultLayers = [ 'osm-mapnik-german_style', - 'osmfr', + 'cyclosm', '1021' // sputnik.ru ]; diff --git a/layers/config/overrides.js b/layers/config/overrides.js index 2a7e3a0..dba816f 100644 --- a/layers/config/overrides.js +++ b/layers/config/overrides.js @@ -227,6 +227,11 @@ BR.confLayers.getPropertyOverrides = function() { 'mapaszlakow-routes': { 'nameShort': 'Routes PL', 'mapUrl': 'http://mapaszlakow.eu/#{zoom}/{lat}/{lon}' - } + }, + 'cyclosm': { + 'language_code': 'fr', + 'nameShort': 'CyclOSM', + 'mapUrl': 'https://dev.{s}.tile.openstreetmap.fr/cyclosm/{z}/{x}/{y}.png' + }, }; };