This commit is contained in:
Iruka 2025-01-03 12:15:37 +08:00
parent 7384169e72
commit 41051dcf33

View File

@ -908,8 +908,10 @@
boundary = JSON.parse(boundary)
if (boundary.length) {
let points = []
boundary.forEach((item) => {
points.push([item[1], item[0]])
boundary.forEach((items) => {
items.forEach(item => {
points.push([item[1], item[0]])
});
})
//
var polygon = L.polygon(points, {