Ajout de quelques symboles
This commit is contained in:
parent
00165620ca
commit
fc31bb2377
17 changed files with 700 additions and 18 deletions
|
|
@ -215,6 +215,7 @@ export class PlaceDatabase extends EventTarget {
|
|||
default_database.loadGeojson(new URL("../couches/autogestion.geojson", import.meta.url), {batch: true}),
|
||||
default_database.loadGeojson(new URL("../couches/bac-a-sable.geojson", import.meta.url), {batch: true}),
|
||||
default_database.loadGeojson(new URL("../couches/batiments.geojson", import.meta.url), {batch: true}),
|
||||
default_database.loadGeojson(new URL("../couches/badmington.geojson", import.meta.url), {batch: true}),
|
||||
default_database.loadGeojson(new URL("../couches/braseros.geojson", import.meta.url), {batch: true}),
|
||||
default_database.loadGeojson(new URL("../couches/camping.geojson", import.meta.url), {batch: true}),
|
||||
default_database.loadGeojson(new URL("../couches/dons.geojson", import.meta.url), {batch: true}),
|
||||
|
|
|
|||
145
js/symbols.js
145
js/symbols.js
|
|
@ -67,6 +67,18 @@ function getSymbolForFeature(feature){
|
|||
|
||||
function getBaseSymbolForFeature(feature){
|
||||
|
||||
if(feature.properties["scene"]){
|
||||
return STAGE_SYMBOL
|
||||
}
|
||||
|
||||
if(feature.properties["autogestion"] == "shifts"){
|
||||
return SHIFTS_SYMBOL
|
||||
}
|
||||
|
||||
if(feature.properties["dons"]){
|
||||
return MONEY_SYMBOL
|
||||
}
|
||||
|
||||
if(feature.properties["wifi"]){
|
||||
return WIFI_SYMBOL
|
||||
}
|
||||
|
|
@ -87,6 +99,10 @@ function getBaseSymbolForFeature(feature){
|
|||
return SLEEPING_SYMBOL
|
||||
}
|
||||
|
||||
if(feature.properties["camping"]){
|
||||
return CAMPING_SYMBOL
|
||||
}
|
||||
|
||||
if(feature.properties["toilettes"]){
|
||||
return TOILETS_SYMBOL
|
||||
}
|
||||
|
|
@ -112,6 +128,26 @@ function getBaseSymbolForFeature(feature){
|
|||
return BIN_SYMBOL
|
||||
}
|
||||
|
||||
if(feature.properties["brazero"]){
|
||||
return BRAZERO_SYMBOL;
|
||||
}
|
||||
|
||||
if(feature.properties["schedule"]){
|
||||
return SCHEDULE_SYMBOL;
|
||||
}
|
||||
|
||||
if(feature.properties["medic"]){
|
||||
return MEDIC_SYMBOL;
|
||||
}
|
||||
|
||||
if(feature.properties["badmington"]){
|
||||
return BADMINGTON_SYMBOL;
|
||||
}
|
||||
|
||||
if(feature.properties["kids friendly"]){
|
||||
return CHILD_AREA_SYMBOL;
|
||||
}
|
||||
|
||||
if(feature.properties["batiment"] || feature.properties["piece-batiment"]){
|
||||
return BUILDING_SYMBOL
|
||||
}
|
||||
|
|
@ -153,6 +189,21 @@ export const SLEEPING_SYMBOL = new MapSymbol()
|
|||
]
|
||||
}
|
||||
|
||||
export const CAMPING_SYMBOL = new MapSymbol()
|
||||
{
|
||||
CAMPING_SYMBOL.markerUrl = new URL("../icons/camping.svg", import.meta.url)
|
||||
CAMPING_SYMBOL.genericName = "Camping"
|
||||
CAMPING_SYMBOL.backgroundColor = "grey"
|
||||
CAMPING_SYMBOL.borderColor = "grey"
|
||||
CAMPING_SYMBOL.indexSynonyms = [
|
||||
"camper",
|
||||
"tente",
|
||||
"mimir",
|
||||
"dormir",
|
||||
"dodo"
|
||||
]
|
||||
}
|
||||
|
||||
export const DRINKING_WATER_SYMBOL = new MapSymbol()
|
||||
{
|
||||
DRINKING_WATER_SYMBOL.markerUrl = new URL("../icons/eau-potable.svg", import.meta.url)
|
||||
|
|
@ -167,6 +218,42 @@ export const PARKING_SYMBOL = new MapSymbol()
|
|||
PARKING_SYMBOL.borderColor = "#989898"
|
||||
}
|
||||
|
||||
export const BADMINGTON_SYMBOL = new MapSymbol()
|
||||
{
|
||||
BADMINGTON_SYMBOL.genericName = "Terrain de badmington"
|
||||
BADMINGTON_SYMBOL.backgroundColor = "white"
|
||||
BADMINGTON_SYMBOL.borderColor = "white"
|
||||
BADMINGTON_SYMBOL.indexSynonyms = [
|
||||
"bad",
|
||||
"badmington",
|
||||
]
|
||||
}
|
||||
|
||||
export const MEDIC_SYMBOL = new MapSymbol()
|
||||
{
|
||||
MEDIC_SYMBOL.markerUrl = new URL("../icons/medic.svg", import.meta.url)
|
||||
MEDIC_SYMBOL.borderColor = "white"
|
||||
MEDIC_SYMBOL.indexSynonyms = [
|
||||
"medic",
|
||||
"médic",
|
||||
"infirmerie",
|
||||
"urgence",
|
||||
"bobo",
|
||||
"malaise"
|
||||
]
|
||||
}
|
||||
|
||||
export const CHILD_AREA_SYMBOL = new MapSymbol()
|
||||
{
|
||||
CHILD_AREA_SYMBOL.genericName = "Espace pour enfants"
|
||||
CHILD_AREA_SYMBOL.backgroundColor = "#ffbe3d"
|
||||
CHILD_AREA_SYMBOL.borderColor = "#ffbe3d"
|
||||
CHILD_AREA_SYMBOL.indexSynonyms = [
|
||||
"enfant",
|
||||
"jeux",
|
||||
]
|
||||
}
|
||||
|
||||
export const TOILETS_SYMBOL = new MapSymbol()
|
||||
{
|
||||
TOILETS_SYMBOL.markerUrl = new URL("../icons/toilettes.svg", import.meta.url)
|
||||
|
|
@ -278,4 +365,62 @@ export const POOP_BIN_SYMBOL = new MapSymbol()
|
|||
"toilettes sèches",
|
||||
"caca"
|
||||
]
|
||||
}
|
||||
|
||||
export const STAGE_SYMBOL = new MapSymbol()
|
||||
{
|
||||
STAGE_SYMBOL.genericName = "Scène"
|
||||
STAGE_SYMBOL.markerUrl = new URL("../icons/scene.svg", import.meta.url)
|
||||
STAGE_SYMBOL.indexSynonyms = [
|
||||
"scène",
|
||||
"musique",
|
||||
"stage",
|
||||
]
|
||||
}
|
||||
|
||||
export const MONEY_SYMBOL = new MapSymbol()
|
||||
{
|
||||
MONEY_SYMBOL.genericName = "Scène"
|
||||
MONEY_SYMBOL.markerUrl = new URL("../icons/dons.svg", import.meta.url)
|
||||
MONEY_SYMBOL.indexSynonyms = [
|
||||
"argent",
|
||||
"thune",
|
||||
"money",
|
||||
"don",
|
||||
"prix libre"
|
||||
]
|
||||
}
|
||||
|
||||
export const SHIFTS_SYMBOL = new MapSymbol()
|
||||
{
|
||||
SHIFTS_SYMBOL.genericName = "Tableau des shifts"
|
||||
SHIFTS_SYMBOL.markerUrl = new URL("../icons/shifts.svg", import.meta.url)
|
||||
SHIFTS_SYMBOL.indexSynonyms = [
|
||||
"shift",
|
||||
"taches",
|
||||
"tableau",
|
||||
]
|
||||
}
|
||||
|
||||
export const SCHEDULE_SYMBOL = new MapSymbol()
|
||||
{
|
||||
SCHEDULE_SYMBOL.genericName = "Programmation"
|
||||
SCHEDULE_SYMBOL.markerUrl = new URL("../icons/prog.svg", import.meta.url)
|
||||
SCHEDULE_SYMBOL.indexSynonyms = [
|
||||
"programmation",
|
||||
"atelier",
|
||||
"conference",
|
||||
"programme",
|
||||
]
|
||||
}
|
||||
|
||||
export const BRAZERO_SYMBOL = new MapSymbol()
|
||||
{
|
||||
BRAZERO_SYMBOL.genericName = "Brazero"
|
||||
BRAZERO_SYMBOL.markerUrl = new URL("../icons/fire.svg", import.meta.url)
|
||||
BRAZERO_SYMBOL.indexSynonyms = [
|
||||
"feu",
|
||||
"brazero",
|
||||
"flamme"
|
||||
]
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue