Unofficial themes are remembered now

This commit is contained in:
Pieter Vander Vennet 2022-02-04 14:36:26 +01:00
parent 3305d108c7
commit dd68cc39e7
4 changed files with 71 additions and 72 deletions

View file

@ -103,7 +103,8 @@ export default class AvailableBaseLayersImplementation implements AvailableBaseL
id: id,
name: name,
layer: () => L.tileLayer.provider(id, {
maxNativeZoom: layer.options?.maxZoom
maxNativeZoom: layer.options?.maxZoom,
maxZoom: Math.max(layer.options?.maxZoom ?? 19, 21)
}),
min_zoom: 1,
max_zoom: layer.options.maxZoom,