Skip to content

Commit

Permalink
resolve bundling issues relating to @turf/jsts in buffer module (#2501)
Browse files Browse the repository at this point in the history
  • Loading branch information
JamesLMilner authored Sep 28, 2023
1 parent cc6689a commit b0fc70c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/turf-buffer/index.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
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 +10,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 b0fc70c

Please sign in to comment.