Ajout d'une categorie toilettes
This commit is contained in:
parent
cb10cc189c
commit
b2a8af6db2
3 changed files with 6 additions and 3 deletions
|
|
@ -222,6 +222,7 @@ bindButtonToCategory(document.getElementById("explore-drinking-water"), "drinkin
|
|||
bindButtonToCategory(document.getElementById("explore-on-schedule"), "on-schedule")
|
||||
bindButtonToCategory(document.getElementById("explore-dodo"), "dodo")
|
||||
bindButtonToCategory(document.getElementById("explore-bin"), "bin")
|
||||
bindButtonToCategory(document.getElementById("explore-toilets"), "toilets")
|
||||
|
||||
document.getElementById("logo").addEventListener("click", e => {
|
||||
openFeature()
|
||||
|
|
|
|||
|
|
@ -12,7 +12,8 @@ const CATEGORIES = {
|
|||
"drinking-water": (feature) => feature.properties["eau potable"] || feature.properties["douches"] || feature.properties["toilettes"],
|
||||
"bin": (feature) => feature.properties["poubelle"],
|
||||
"dodo": (feature) => feature.properties["n couchage"] > 0 || feature.properties["camping"],
|
||||
"on-schedule": (feature) => feature.properties["pretalx-room-id"] || feature.properties["pretalx-room-id"] == 0
|
||||
"on-schedule": (feature) => feature.properties["pretalx-room-id"] || feature.properties["pretalx-room-id"] == 0,
|
||||
"toilets": (feature) => feature.properties["toilettes"] || feature.properties["douches"]
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue