|
|
|
|
@ -89,7 +89,11 @@ module.exports = {
|
|
|
|
|
console.log(polygon);
|
|
|
|
|
if (polygon.coords[0].lat != polygon.coords[polygon.length - 1].lat &&
|
|
|
|
|
polygon.coords[0].lng != polygon.coords[polygon.length - 1].lng) {
|
|
|
|
|
<<<<<<< HEAD
|
|
|
|
|
polygon.coords.push({lat: polygon.coords[0].lat, lng: polygon.coords[0].lng})
|
|
|
|
|
=======
|
|
|
|
|
polygon.coords.push({lat: polygon[0].lat, lng: polygon[0].lng})
|
|
|
|
|
>>>>>>> f286983573b5980aa50e49c72893ccc0e1744e45
|
|
|
|
|
}
|
|
|
|
|
let intersect = module.exports.checkIntersects(polygonPoints, polygon.coords);
|
|
|
|
|
if (intersect != null) {
|
|
|
|
|
|