We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 715e4ff commit a937945Copy full SHA for a937945
src/lib/geo_location_utils.js
@@ -291,7 +291,7 @@ function findCentroid(feature) {
291
292
for(var i = 0; i < coords.length; i++) {
293
var polyi = {type: 'Polygon', coordinates: coords[i]};
294
- var area = turfArea.default(polyi);
+ var area = turfArea(polyi);
295
if(area > maxArea) {
296
maxArea = area;
297
poly = polyi;
@@ -301,7 +301,7 @@ function findCentroid(feature) {
301
poly = geometry;
302
}
303
304
- return turfCentroid.default(poly).geometry.coordinates;
+ return turfCentroid(poly).geometry.coordinates;
305
306
307
function fetchTraceGeoData(calcData) {
0 commit comments