.
This commit is contained in:
parent
7384169e72
commit
41051dcf33
@ -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, {
|
||||
|
Loading…
Reference in New Issue
Block a user