affichage popup

This commit is contained in:
Tykayn 2024-11-26 21:38:16 +01:00 committed by tykayn
parent c2cb88e9aa
commit 9f7209e652
2 changed files with 12 additions and 6 deletions

View file

@ -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, {