Amelioration de l'affichage des points

This commit is contained in:
EpicKiwi 2026-07-03 15:33:22 +02:00
parent cbab1d6eb3
commit 500a51b1fc
Signed by: epickiwi
GPG key ID: C4B28FD2729941CE
3 changed files with 31 additions and 1 deletions

View file

@ -76,6 +76,10 @@ function getBaseSymbolForFeature(feature){
return STAGE_SYMBOL
}
if(feature.properties["village"]){
return VILLAGE_SYMBOL
}
if(feature.properties["bar"]){
return DRINKS_SYMBOL;
}
@ -506,4 +510,16 @@ export const DRINKS_SYMBOL = new MapSymbol()
"kefir",
"maté"
]
}
export const VILLAGE_SYMBOL = new MapSymbol()
{
VILLAGE_SYMBOL.genericName = "Installation permanente"
VILLAGE_SYMBOL.markerUrl = new URL("../icons/default-marker.svg", import.meta.url)
VILLAGE_SYMBOL.backgroundColor = "white"
VILLAGE_SYMBOL.borderColor = "white"
VILLAGE_SYMBOL.indexSynonyms = [
"village",
"installation"
]
}