Allow a layer to be hidden by default; add some validation and behaviour tweaks

This commit is contained in:
Pieter Vander Vennet 2021-12-03 02:29:25 +01:00
parent 5f3c8dd1b4
commit ea5bc7cbf4
7 changed files with 17 additions and 2 deletions

View file

@ -227,7 +227,7 @@ export default class LocationInput extends InputElement<Loc> implements MinimapO
leaflet.setMaxZoom(layer.max_zoom)
leaflet.setMinZoom(self._minZoom ?? layer.max_zoom - 2)
leaflet.setZoom(layer.max_zoom - 1)
leaflet.setZoom(layer.max_zoom)
}, [this.map.leafletMap])