Ajout des symboles de poubelle

This commit is contained in:
EpicKiwi 2026-06-14 14:57:43 +02:00
parent 69568ca0fe
commit dc07b1b415
Signed by: epickiwi
GPG key ID: C4B28FD2729941CE
6 changed files with 423 additions and 1 deletions

View file

@ -99,6 +99,19 @@ function getBaseSymbolForFeature(feature){
return DRINKING_WATER_SYMBOL
}
if(feature.properties["poubelle"]){
if(feature.properties["recyclage"]){
return RECYCLE_BIN_SYMBOL
}
if(feature.properties["compost vegetal"]){
return COMPOST_BIN_SYMBOL
}
if(feature.properties["compost caca"]){
return POOP_BIN_SYMBOL
}
return BIN_SYMBOL
}
if(feature.properties["batiment"] || feature.properties["piece-batiment"]){
return BUILDING_SYMBOL
}
@ -213,4 +226,56 @@ export const WIFI_SYMBOL = new MapSymbol()
{
WIFI_SYMBOL.genericName = "Wifi"
WIFI_SYMBOL.markerUrl = new URL("../icons/wifi.svg", import.meta.url)
}
export const BIN_SYMBOL = new MapSymbol()
{
BIN_SYMBOL.genericName = "Poubelle"
BIN_SYMBOL.markerUrl = new URL("../icons/poubelle.svg", import.meta.url)
BIN_SYMBOL.indexSynonyms = [
"poubelle",
"dechet",
"déchet"
]
}
export const RECYCLE_BIN_SYMBOL = new MapSymbol()
{
RECYCLE_BIN_SYMBOL.genericName = "Poubelle recyclable"
RECYCLE_BIN_SYMBOL.markerUrl = new URL("../icons/poubelle-recyclable.svg", import.meta.url)
RECYCLE_BIN_SYMBOL.indexSynonyms = [
"poubelle",
"dechet",
"déchet",
"recyclable",
'recyclage'
]
}
export const COMPOST_BIN_SYMBOL = new MapSymbol()
{
COMPOST_BIN_SYMBOL.genericName = "Compost"
COMPOST_BIN_SYMBOL.markerUrl = new URL("../icons/poubelle-compost.svg", import.meta.url)
COMPOST_BIN_SYMBOL.indexSynonyms = [
"poubelle",
"dechet",
"déchet",
"compost",
"épluchures"
]
}
export const POOP_BIN_SYMBOL = new MapSymbol()
{
POOP_BIN_SYMBOL.genericName = "Compost des toilettes sèches"
POOP_BIN_SYMBOL.markerUrl = new URL("../icons/poubelle-caca.svg", import.meta.url)
POOP_BIN_SYMBOL.indexSynonyms = [
"poubelle",
"dechet",
"déchet",
"compost",
"épluchures",
"toilettes sèches",
"caca"
]
}