Themes(cafe_pub, toilets): add toilet information to pubs; forward wheelchair accessibility information to 'toilet_at_amenity'

This commit is contained in:
Pieter Vander Vennet 2025-04-22 01:20:57 +02:00
parent 7a0eed35e3
commit 455b2c641c
9 changed files with 75 additions and 118 deletions

View file

@ -1,7 +1,6 @@
import { LayerConfigJson } from "./Json/LayerConfigJson"
export interface LevelInfo {
level: number,
ids: string[],
loop?: boolean
}
@ -54,14 +53,11 @@ export class LayerConfigDependencyGraph {
public static buildLevels(dependsOn: Map<string, string[]>): LevelInfo[]{
const levels: LevelInfo[] = []
let levelIndex = 0
const seenIds = new Set<string>()
while (Array.from(dependsOn.keys()).length > 0) {
const currentLevel: LevelInfo = {
ids: <string[]>[],
level: levelIndex,
}
levelIndex++
levels.push(currentLevel)
for (const layerId of dependsOn.keys()) {
const dependencies = dependsOn.get(layerId)