Ameliorations des symboles
This commit is contained in:
parent
25cf94a52a
commit
46f616fc66
1 changed files with 27 additions and 5 deletions
|
|
@ -108,11 +108,11 @@ function getBaseSymbolForFeature(feature){
|
|||
return CAMPING_SYMBOL
|
||||
}
|
||||
|
||||
if(feature.properties["toilettes"]){
|
||||
if(feature.properties["toilettes"] && feature.properties["douches"]) {
|
||||
return SHOWER_AND_TOILETS_SYMBOL
|
||||
} else if(feature.properties["toilettes"]){
|
||||
return TOILETS_SYMBOL
|
||||
}
|
||||
|
||||
if(feature.properties["douches"]){
|
||||
} else if(feature.properties["douches"]){
|
||||
return SHOWER_SYMBOL
|
||||
}
|
||||
|
||||
|
|
@ -185,6 +185,8 @@ export const SLEEPING_SYMBOL = new MapSymbol()
|
|||
{
|
||||
SLEEPING_SYMBOL.markerUrl = new URL("../icons/dortoir.svg", import.meta.url)
|
||||
SLEEPING_SYMBOL.genericName = "Dortoir"
|
||||
SLEEPING_SYMBOL.backgroundColor = "grey"
|
||||
SLEEPING_SYMBOL.borderColor = "grey"
|
||||
SLEEPING_SYMBOL.indexSynonyms = [
|
||||
"dodo",
|
||||
"dortoir",
|
||||
|
|
@ -263,6 +265,8 @@ export const TOILETS_SYMBOL = new MapSymbol()
|
|||
{
|
||||
TOILETS_SYMBOL.markerUrl = new URL("../icons/toilettes.svg", import.meta.url)
|
||||
TOILETS_SYMBOL.genericName = "Toilettes"
|
||||
TOILETS_SYMBOL.backgroundColor = "#8800ff"
|
||||
TOILETS_SYMBOL.borderColor = "#8800ff"
|
||||
TOILETS_SYMBOL.indexSynonyms = [
|
||||
"caca",
|
||||
"pipi",
|
||||
|
|
@ -289,7 +293,23 @@ export const TOILETS_SYMBOL = new MapSymbol()
|
|||
export const SHOWER_SYMBOL = new MapSymbol()
|
||||
{
|
||||
SHOWER_SYMBOL.markerUrl = new URL("../icons/douches.svg", import.meta.url)
|
||||
SHOWER_SYMBOL.genericName = "Douche"
|
||||
SHOWER_SYMBOL.genericName = "Douches"
|
||||
SHOWER_SYMBOL.backgroundColor = "#8800ff"
|
||||
SHOWER_SYMBOL.borderColor = "#8800ff"
|
||||
}
|
||||
|
||||
export const SHOWER_AND_TOILETS_SYMBOL = new MapSymbol();
|
||||
{
|
||||
SHOWER_AND_TOILETS_SYMBOL.markerUrl = [
|
||||
TOILETS_SYMBOL.markerUrl,
|
||||
SHOWER_SYMBOL.markerUrl
|
||||
]
|
||||
SHOWER_AND_TOILETS_SYMBOL.backgroundColor = "#8800ff"
|
||||
SHOWER_AND_TOILETS_SYMBOL.borderColor = "#8800ff"
|
||||
SHOWER_AND_TOILETS_SYMBOL.genericName = "Toilettes & douches"
|
||||
SHOWER_AND_TOILETS_SYMBOL.indexSynonyms = [
|
||||
...TOILETS_SYMBOL.indexSynonyms
|
||||
]
|
||||
}
|
||||
|
||||
export const SWIMMING_POOL_SYMBOL = new MapSymbol()
|
||||
|
|
@ -377,6 +397,8 @@ export const STAGE_SYMBOL = new MapSymbol()
|
|||
{
|
||||
STAGE_SYMBOL.genericName = "Scène"
|
||||
STAGE_SYMBOL.markerUrl = new URL("../icons/scene.svg", import.meta.url)
|
||||
STAGE_SYMBOL.backgroundColor = "#ffbf3e"
|
||||
STAGE_SYMBOL.borderColor = "#ffbf3e"
|
||||
STAGE_SYMBOL.indexSynonyms = [
|
||||
"scène",
|
||||
"musique",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue