Amelioration de la navigation sur la carte
This commit is contained in:
parent
aa8ea624c7
commit
799dd817ae
5 changed files with 171 additions and 46 deletions
|
|
@ -102,8 +102,14 @@ function getBaseSymbolForFeature(feature){
|
|||
if(feature.properties["batiment"] || feature.properties["piece-batiment"]){
|
||||
return BUILDING_SYMBOL
|
||||
}
|
||||
|
||||
return DEFAULT_SYMBOL
|
||||
|
||||
if(feature.parentFeature && feature.parentFeature.geometry.type != "Point"){
|
||||
return DEFAULT_AREA_SYMBOL
|
||||
} else if (feature.geometry.type != "Point") {
|
||||
return DEFAULT_AREA_SYMBOL
|
||||
} else {
|
||||
return DEFAULT_SYMBOL
|
||||
}
|
||||
}
|
||||
|
||||
// PREDEFINED Symbols
|
||||
|
|
@ -115,6 +121,12 @@ export const DEFAULT_SYMBOL = new MapSymbol()
|
|||
DEFAULT_SYMBOL.borderColor = "white"
|
||||
}
|
||||
|
||||
export const DEFAULT_AREA_SYMBOL = new MapSymbol()
|
||||
{
|
||||
DEFAULT_AREA_SYMBOL.backgroundColor = "white"
|
||||
DEFAULT_AREA_SYMBOL.borderColor = "white"
|
||||
}
|
||||
|
||||
export const SLEEPING_SYMBOL = new MapSymbol()
|
||||
{
|
||||
SLEEPING_SYMBOL.markerUrl = new URL("../icons/dortoir.svg", import.meta.url)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue