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 id = BR.confLayers.languageDefaultLayers[i];
|
||||||
var layer = BR.layerIndex[id];
|
var layer = BR.layerIndex[id];
|
||||||
if (layer) {
|
if (layer) {
|
||||||
var layerLanguage = layer.properties['language_code'];
|
var layerLanguage = layer.properties['language_code'] || layer.properties['pseudo_language_code'];
|
||||||
if (layerLanguage) {
|
if (layerLanguage) {
|
||||||
languageLayersMap[layerLanguage] = id;
|
languageLayersMap[layerLanguage] = id;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -232,7 +232,7 @@ BR.confLayers.getPropertyOverrides = function() {
|
||||||
'mapUrl': 'http://mapaszlakow.eu/#{zoom}/{lat}/{lon}'
|
'mapUrl': 'http://mapaszlakow.eu/#{zoom}/{lat}/{lon}'
|
||||||
},
|
},
|
||||||
'cyclosm': {
|
'cyclosm': {
|
||||||
'language_code': 'fr',
|
'pseudo_language_code': 'fr',
|
||||||
'nameShort': 'CyclOSM',
|
'nameShort': 'CyclOSM',
|
||||||
'mapUrl': 'https://www.cyclosm.org/#map={zoom}/{lat}/{lon}/cyclosm'
|
'mapUrl': 'https://www.cyclosm.org/#map={zoom}/{lat}/{lon}/cyclosm'
|
||||||
},
|
},
|
||||||
|
|
|
||||||
|
|
@ -2,6 +2,7 @@ BR.confLayers.tree = {
|
||||||
'base-layers': {
|
'base-layers': {
|
||||||
'worldwide-international': [
|
'worldwide-international': [
|
||||||
'standard',
|
'standard',
|
||||||
|
'cyclosm',
|
||||||
'OpenTopoMap',
|
'OpenTopoMap',
|
||||||
'Stamen.Terrain',
|
'Stamen.Terrain',
|
||||||
'Esri.WorldImagery',
|
'Esri.WorldImagery',
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue