Allow a layer to be hidden by default; add some validation and behaviour tweaks
This commit is contained in:
parent
5f3c8dd1b4
commit
ea5bc7cbf4
7 changed files with 17 additions and 2 deletions
|
@ -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])
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue