Skip to content

Commit

Permalink
partial fix for issue #310
Browse files Browse the repository at this point in the history
  • Loading branch information
gloriajjl committed May 28, 2020
1 parent 1b6e668 commit 3a4adbc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions frontend/app/constants/Selection.js
Original file line number Diff line number Diff line change
Expand Up @@ -84,8 +84,8 @@ export function selectionToPolygon(selection) {
points.push(points[0]);

points.forEach(function(point) {
let lat = fixedPoint(point.lat ? point.lat : point[0]);
let lng = fixedPoint(point.lng ? point.lng : point[1]);
let lat = fixedPoint(selection.type == Types.Polygon ? point[0] : point.lat);
let lng = fixedPoint(selection.type == Types.Polygon ? point[1] : point.lng);

coords.push(new Array(lng, lat));
});
Expand Down

0 comments on commit 3a4adbc

Please sign in to comment.