Skip to content

Commit

Permalink
resolve bundling issues relating to @turf/jsts in buffer module
Browse files Browse the repository at this point in the history
  • Loading branch information
JamesLMilner committed Sep 27, 2023
1 parent cc6689a commit c36d755
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions packages/turf-buffer/index.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import center from "@turf/center";
import { BufferOp, GeoJSONReader, GeoJSONWriter } from "@turf/jsts";
import jsts from '@turf/jsts';
import { geomEach, featureEach } from "@turf/meta";
import { geoAzimuthalEquidistant } from "d3-geo";
import {
Expand All @@ -10,6 +11,8 @@ import {
earthRadius,
} from "@turf/helpers";

const { BufferOp, GeoJSONReader, GeoJSONWriter } = jsts

/**
* Calculates a buffer for input features for a given radius. Units supported are miles, kilometers, and degrees.
*
Expand Down

0 comments on commit c36d755

Please sign in to comment.