Compare commits
2 Commits
renovate/g
...
master
Author | SHA1 | Date | |
---|---|---|---|
c45f002f82 | |||
e1c9bdb8bd |
@ -7,9 +7,11 @@ function onchange(e){
|
||||
m.route.set("/map/:layerId/:zoom/:lon/:lat", params);
|
||||
}
|
||||
|
||||
|
||||
export default {
|
||||
view: function(){
|
||||
// Display layer selector only if there is choice
|
||||
if (LayerManager.layers.length <= 1)
|
||||
return null;
|
||||
|
||||
const layers = LayerManager.layers.map(layer => m(
|
||||
"option",
|
||||
|
@ -71,7 +71,7 @@ export default L.LayerGroup.extend({
|
||||
|
||||
|
||||
getMaxDisplayedZoom: function(){
|
||||
return 10;
|
||||
return 7;
|
||||
},
|
||||
|
||||
createMarker: function(train){
|
||||
|
@ -58,6 +58,10 @@ export default AbstractGeoJsonOverlay.extend({
|
||||
}
|
||||
});
|
||||
},
|
||||
|
||||
getMaxDisplayedZoom: function(){
|
||||
return 4;
|
||||
},
|
||||
|
||||
createGeoJson: function(objects){
|
||||
var self = this;
|
||||
|
Loading…
Reference in New Issue
Block a user