mirror of
https://forge.chapril.org/tykayn/libre-charge-map
synced 2025-06-20 01:34:43 +02:00
affichage popup
This commit is contained in:
parent
c2cb88e9aa
commit
9f7209e652
2 changed files with 12 additions and 6 deletions
|
@ -211,7 +211,7 @@ function displayPointsFromApi (points) {
|
|||
popupContent = '<span class="no-data"> Aucune information renseignée, <a class="edit-button" href="https://www.openstreetmap.org/edit?editor=id&node=' + feature.properties.id + '">ajoutez la dans OpenStreetMap!</a></span>'
|
||||
}
|
||||
let html = '<a class="edit-button" href="https://www.openstreetmap.org/edit?editor=id&node=' + feature.properties.id + '">' +
|
||||
'✏️</a> <span class="color-indication" style="background-color: '+color+';">'+displayOutPowerGuessed+'</span> <br/>' + popupContent
|
||||
'✏️</a> <span class="color-indication" style="background-color: '+color+';">'+displayOutPowerGuessed+'</span> <br/><span class="popup-content">' + popupContent +'</span>'
|
||||
|
||||
// console.log('layer', layer)
|
||||
let marker = L.marker(layer._latlng, {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue