proposition fix alerte osmose
This commit is contained in:
parent
503e6e9dac
commit
e262a83687
1 changed files with 6 additions and 5 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue