forked from MapComplete/MapComplete
New preset-system, better 'add new POI'-ui with small confirmation
This commit is contained in:
parent
c020955cdc
commit
8a1e171298
25 changed files with 317 additions and 80 deletions
|
@ -12,6 +12,7 @@ import {Widths} from "./Layers/Widths";
|
|||
import {StreetWidth} from "./Layouts/StreetWidth";
|
||||
import {NatureReserves} from "./Layers/NatureReserves";
|
||||
import {Natuurpunt} from "./Layouts/Natuurpunt";
|
||||
import Translations from "../UI/i18n/Translations";
|
||||
|
||||
export class AllKnownLayouts {
|
||||
public static allSets = AllKnownLayouts.AllLayouts();
|
||||
|
@ -36,6 +37,7 @@ export class AllKnownLayouts {
|
|||
const knownKeys = []
|
||||
for (const layout of layouts) {
|
||||
for (const layer of layout.layers) {
|
||||
console.log("Adding ", Translations.W(layer.name).InnerRender());
|
||||
const key = layer.overpassFilter.asOverpass().join("");
|
||||
if (knownKeys.indexOf(key) >= 0) {
|
||||
continue;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue