v4.9.1-mtsr0 #5

Merged
Reload merged 2 commits from devel into master 2024-11-10 11:35:20 +03:00
3 changed files with 8 additions and 2 deletions

View File

@ -7,9 +7,11 @@ function onchange(e){
m.route.set("/map/:layerId/:zoom/:lon/:lat", params); m.route.set("/map/:layerId/:zoom/:lon/:lat", params);
} }
export default { export default {
view: function(){ view: function(){
// Display layer selector only if there is choice
if (LayerManager.layers.length <= 1)
return null;
const layers = LayerManager.layers.map(layer => m( const layers = LayerManager.layers.map(layer => m(
"option", "option",

View File

@ -71,7 +71,7 @@ export default L.LayerGroup.extend({
getMaxDisplayedZoom: function(){ getMaxDisplayedZoom: function(){
return 10; return 7;
}, },
createMarker: function(train){ createMarker: function(train){

View File

@ -58,6 +58,10 @@ export default AbstractGeoJsonOverlay.extend({
} }
}); });
}, },
getMaxDisplayedZoom: function(){
return 4;
},
createGeoJson: function(objects){ createGeoJson: function(objects){
var self = this; var self = this;