|
|
|
@ -50,7 +50,7 @@ module.exports = {
|
|
|
|
if (distance < 20) {
|
|
|
|
if (distance < 20) {
|
|
|
|
if (lastPoint.lat != firstPoint.lat || lastPoint.lng != firstPoint.lng) {
|
|
|
|
if (lastPoint.lat != firstPoint.lat || lastPoint.lng != firstPoint.lng) {
|
|
|
|
// points.pop();
|
|
|
|
// points.pop();
|
|
|
|
points.push({lat: firstPoint.lat, lng: lastPoint.lng});
|
|
|
|
points.push({lat: firstPoint.lat, lng: firstPoint.lng});
|
|
|
|
}
|
|
|
|
}
|
|
|
|
areaFunctions.collatePolygons(res, gameID, userID, points);
|
|
|
|
areaFunctions.collatePolygons(res, gameID, userID, points);
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
|