More work on cyclestreet layout, add loading of layers depending on zoom level

This commit is contained in:
Pieter Vander Vennet 2020-08-28 03:16:21 +02:00
parent 3576a4b1e1
commit 9a5b35b9f3
17 changed files with 109 additions and 59 deletions

View file

@ -183,7 +183,6 @@ export class InitUiElements {
const flayers: FilteredLayer[] = []
const presets: Preset[] = [];
let minZoom = 0;
const state = State.state;
for (const layer of state.layoutToUse.data.layers) {
@ -197,9 +196,6 @@ export class InitUiElements {
)
};
minZoom = Math.max(minZoom, layer.minzoom);
for (const preset of layer.presets ?? []) {
if (preset.icon === undefined) {