Amelioration de l'affichage des points
This commit is contained in:
parent
cbab1d6eb3
commit
500a51b1fc
3 changed files with 31 additions and 1 deletions
|
|
@ -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"
|
||||
]
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue