More work on cyclestreet layout, add loading of layers depending on zoom level
This commit is contained in:
parent
3576a4b1e1
commit
9a5b35b9f3
17 changed files with 109 additions and 59 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue