Linked Camera to game, and also fixed polygon last points are not equal
This commit is contained in:
@@ -85,6 +85,10 @@ module.exports = {
|
||||
let polygonResult = [];
|
||||
let polygonsMerged = [];
|
||||
polygons.map((polygon) => {
|
||||
if (polygon[0].lat != polygon[polygon.length - 1].lat &&
|
||||
polygon[0].lng != polygon[polygon.length - 1].lng) {
|
||||
polygon.push({lat: polygon[0].lat, lng: polygon[0].lng})
|
||||
}
|
||||
let intersect = module.exports.checkIntersects(polygonPoints, polygon.coords);
|
||||
if (intersect != null) {
|
||||
polygonPoints = module.exports.unionPolygon(polygonPoints, polygon.coords);
|
||||
|
||||
Reference in New Issue
Block a user