Add CyclOSM back for all (#290)
Use `pseudo_language_code` to keep it the default for French users, but not display the (wrong) language prefix in the layer tree.
This commit is contained in:
parent
b3b2c3194e
commit
c3ac8345ee
3 changed files with 3 additions and 2 deletions
|
|
@ -88,7 +88,7 @@ BR.LayersConfig = L.Class.extend({
|
|||
var id = BR.confLayers.languageDefaultLayers[i];
|
||||
var layer = BR.layerIndex[id];
|
||||
if (layer) {
|
||||
var layerLanguage = layer.properties['language_code'];
|
||||
var layerLanguage = layer.properties['language_code'] || layer.properties['pseudo_language_code'];
|
||||
if (layerLanguage) {
|
||||
languageLayersMap[layerLanguage] = id;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -232,7 +232,7 @@ BR.confLayers.getPropertyOverrides = function() {
|
|||
'mapUrl': 'http://mapaszlakow.eu/#{zoom}/{lat}/{lon}'
|
||||
},
|
||||
'cyclosm': {
|
||||
'language_code': 'fr',
|
||||
'pseudo_language_code': 'fr',
|
||||
'nameShort': 'CyclOSM',
|
||||
'mapUrl': 'https://www.cyclosm.org/#map={zoom}/{lat}/{lon}/cyclosm'
|
||||
},
|
||||
|
|
|
|||
|
|
@ -2,6 +2,7 @@ BR.confLayers.tree = {
|
|||
'base-layers': {
|
||||
'worldwide-international': [
|
||||
'standard',
|
||||
'cyclosm',
|
||||
'OpenTopoMap',
|
||||
'Stamen.Terrain',
|
||||
'Esri.WorldImagery',
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue