proposition fix alerte osmose

This commit is contained in:
Tykayn 2025-08-21 17:11:11 +02:00 committed by tykayn
parent 503e6e9dac
commit e262a83687

View file

@ -7,6 +7,10 @@
<link href='{{ asset('js/maplibre/maplibre-gl.css') }}' rel='stylesheet'/>
<link href='{{ asset('css/city-sidebar.css') }}' rel='stylesheet'/>
<style>
.osmose-infos .button{
color: #8A2BE2;
padding: 1rem;
}
#alertes_osmose .counter{
background: #8A2BE2;
border-radius: 10em;
@ -920,11 +924,8 @@
if (issue.lat && issue.lon) {
let lapopup = new maplibregl.Popup({offset: 25})
.setHTML(
(() => {
return `<div id="osmose-popup-${issue.id}" >Proposition d'ajout <button onclick="()=> window.localtion.href=http://localhost:8111/import?url=https://osmose.openstreetmap.fr/api/0.3/issue/${issue.id}/fix/0)">corriger dans josm</button></div>`
})());
.setHTML( `<div class="osmose-infos" id="osmose-popup-${issue.id}" > Intégration d'objet possible <a class="button" href="http://localhost:8111/import?url=https://osmose.openstreetmap.fr/api/0.3/issue/${issue.id}/fix/0">corriger dans josm</a> </div>`
);
// lapopup.on('open', () => {
// // Charger les détails de l'analyse lorsque le popup est ouvert