johan/add-api #7

Merged
johan.le.baut merged 17 commits from johan/add-api into master 2023-02-28 22:32:35 +01:00
Showing only changes of commit 296ed8da8a - Show all commits

View file

@ -140,14 +140,19 @@ async function initLimitsBox(map, btn) {
await getServerBoxBounds(map, box);
box.addTo(map);
map.on("zoom move", () => {
map.on("zoom move zoomend moveend", () => {
box.setBounds(getRectangleCoord(map))
})
btn.addEventListener("click", () => {
getServerBoxBounds(map, box)
getServerBoxBounds(map, box);
});
addEventListener("resize", () => {
getServerBoxBounds(map, box);
});
}
function createRectangleBox(map) {