diff --git a/js/preview/geojson.js b/js/preview/geojson.js index 0c12ca6..4ff6228 100644 --- a/js/preview/geojson.js +++ b/js/preview/geojson.js @@ -1,5 +1,5 @@ import lineToPolygon from '@turf/line-to-polygon'; -import centerOfMass from '@turf/center-of-mass'; +import { centerOfMass } from '@turf/center-of-mass'; import { poiClassAndSubclass } from './poi'; function levelToArray(level) { diff --git a/js/preview/imdf.js b/js/preview/imdf.js index 2885701..8fcca99 100644 --- a/js/preview/imdf.js +++ b/js/preview/imdf.js @@ -1,5 +1,5 @@ import JSZip from 'jszip'; -import centerOfMass from '@turf/center-of-mass'; +import { centerOfMass } from '@turf/center-of-mass'; import uniq from 'lodash.uniq'; import { poiClassAndSubclass } from './poi';