De multiples icones peuvemt maintenant etre utilisées
This commit is contained in:
parent
a9f220e596
commit
25cf94a52a
3 changed files with 30 additions and 13 deletions
|
|
@ -117,9 +117,12 @@ export async function init_places(places_db){
|
|||
|
||||
let symbol = feature.mapSymbol;
|
||||
if(symbol.markerUrl) {
|
||||
let iconEl = document.createElement("img")
|
||||
iconEl.src = symbol.markerUrl
|
||||
contentEl.append(iconEl)
|
||||
let markerList = Array.isArray(symbol.markerUrl) ? symbol.markerUrl : [symbol.markerUrl];
|
||||
for(let marker of markerList){
|
||||
let iconEl = document.createElement("img")
|
||||
iconEl.src = marker
|
||||
contentEl.append(iconEl)
|
||||
}
|
||||
}
|
||||
|
||||
if(symbol.borderColor && symbol.borderColor != "white"){
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue