Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
145 commits
Select commit Hold shift + click to select a range
c5d4ad1
Update flatten, include output
justsml Feb 3, 2025
a895bc0
Update simplify.mdx
justsml Feb 3, 2025
145882d
Update intersect.mdx
justsml Feb 3, 2025
c2d8c47
Add @docusaurus/theme-live-codeblock dependency
justsml Feb 6, 2025
1a0e846
Update buffer() examples
justsml Feb 6, 2025
01c971b
Add live map editor to simplify
justsml Feb 6, 2025
c042ba2
Add live map editor to examples
justsml Feb 6, 2025
b15db55
refactor: Rename Map0 to Map and remove BrowserOnly wrapper
justsml Feb 6, 2025
2b40b32
refactor: Cleanup area.mdx Map component across versions
justsml Feb 6, 2025
17aa41f
Add live code editor to area
justsml Feb 6, 2025
7d27532
refactor: Simplify Map0 component in bbox.mdx files
justsml Feb 6, 2025
7211fb3
refactor: Simplify Map0 component by removing comments and BrowserOnl…
justsml Feb 6, 2025
9107b40
refactor: Cleanup Map0 component in bboxPolygon.mdx files
justsml Feb 6, 2025
14eb20f
refactor: Simplify Map component in bearing.mdx files
justsml Feb 6, 2025
d4a24c3
refactor: Simplify Map0 component by removing comments and inlining a…
justsml Feb 6, 2025
8f41bf4
refactor: Simplify Map0 component in booleanIntersects.mdx files
justsml Feb 6, 2025
a5a7bb7
refactor: Simplify Map0 component in center.mdx files
justsml Feb 6, 2025
620685b
refactor: Simplify Map0 component by removing comments and inlining a…
justsml Feb 6, 2025
4dc34f3
refactor: Simplify Map0 component by removing comments and inlining a…
justsml Feb 6, 2025
6af59ff
refactor: Simplify Map0 component in centerMedian.mdx files
justsml Feb 6, 2025
86c048e
refactor: Simplify Map0 component by removing comments and inlining a…
justsml Feb 6, 2025
d957a7e
refactor: Simplify Map0 component by removing comments and inlining a…
justsml Feb 6, 2025
dd75c8f
refactor: Simplify Map0 component in circle.mdx files
justsml Feb 6, 2025
fcdb23c
refactor: Simplify Map0 component in clustersDbscan.mdx files
justsml Feb 6, 2025
d5a61a3
refactor: Simplify Map0 component in clustersKmeans.mdx files
justsml Feb 6, 2025
4ea9b7f
refactor: Cleanup Map0 component by removing comments and simplifying…
justsml Feb 6, 2025
b92bc77
refactor: Simplify Map0 component in combine.mdx examples
justsml Feb 6, 2025
d2cc565
refactor: Simplify Map0 component by removing comments and BrowserOnl…
justsml Feb 6, 2025
880ac93
refactor: Simplify Map0 component by removing comments and inline add…
justsml Feb 6, 2025
97795b7
refactor: Simplify Map0 component in destination.mdx files
justsml Feb 6, 2025
e236971
refactor: Simplify Map0 component by removing comments and inlining a…
justsml Feb 6, 2025
4f5afe1
refactor: Cleanup Map0 component by removing comments and inlining ad…
justsml Feb 6, 2025
87eca3a
refactor: Cleanup Map0 component by removing comments and simplifying…
justsml Feb 6, 2025
0d83ebc
refactor: Simplify Map0 component in ellipse.mdx files
justsml Feb 6, 2025
729f2a2
refactor: Simplify Map0 component by removing comments and BrowserOnl…
justsml Feb 6, 2025
f8e6ecc
refactor: Simplify Map component in explode.mdx files
justsml Feb 6, 2025
8d3effe
refactor: Simplify Map0 component in flatten.mdx by removing comments…
justsml Feb 6, 2025
89d6b27
refactor: Cleanup Map0 component in flip.mdx files
justsml Feb 6, 2025
3caf14d
refactor: Simplify Map0 component by removing comments and BrowserOnl…
justsml Feb 6, 2025
e42e11b
refactor: Simplify Map0 component and remove unnecessary code
justsml Feb 6, 2025
9410f0a
refactor: Simplify Map0 component in interpolate.mdx files
justsml Feb 6, 2025
98851e3
refactor: Simplify Map component in intersect.mdx files
justsml Feb 6, 2025
3e581e9
refactor: Simplify intersect.mdx example code in multiple versions
justsml Feb 6, 2025
16cf58f
refactor: Simplify Map0 component in envelope.mdx files
justsml Feb 6, 2025
9907448
refactor: Cleanup Map0 component in bezierSpline.mdx files
justsml Feb 6, 2025
2886640
Add live code editor to docs
justsml Feb 6, 2025
51e9880
refactor: Clean up Map0 component by removing comments and wrapper
justsml Feb 6, 2025
9b29e7d
refactor: Clean up Map0 component by removing comments and unused code
justsml Feb 6, 2025
b88fe76
refactor: Clean up Map0 component by removing comments and wrapper
justsml Feb 6, 2025
8b9b011
refactor: Clean up Map0 component by removing comments and unused code
justsml Feb 6, 2025
8b85329
refactor: Clean up Map0 component by removing comments and unused code
justsml Feb 6, 2025
6bac920
refactor: Clean up Map0 component by removing comments and unused code
justsml Feb 6, 2025
c5160e0
fix: Correct code block formatting in collect.mdx
justsml Feb 6, 2025
7d58a12
refactor: Clean up Map0 component by removing comments and unused code
justsml Feb 6, 2025
b25702c
refactor: Clean up Map0 component by removing comments and unused code
justsml Feb 6, 2025
3f29430
refactor: Clean up Map0 component by removing comments and unused code
justsml Feb 6, 2025
9b2346a
refactor: Clean up Map0 component by removing comments and unused code
justsml Feb 6, 2025
b90b4f6
refactor: Clean up Map0 component by removing comments and unused code
justsml Feb 6, 2025
3f0db62
refactor: Clean up Map0 component by removing comments and unused code
justsml Feb 6, 2025
e1ad67a
refactor: Clean up Map0 component by removing comments and unused code
justsml Feb 6, 2025
bd9ffc7
refactor: Clean up Map0 component by removing comments and unused code
justsml Feb 6, 2025
3dbc3b9
refactor: Clean up Map0 component by removing comments and BrowserOnl…
justsml Feb 6, 2025
7311c34
refactor: Clean up Map0 component by removing comments and unused code
justsml Feb 6, 2025
46e7725
refactor: Clean up Map0 component by removing comments and unused code
justsml Feb 6, 2025
1088d30
refactor: Clean up Map0 component by removing comments and BrowserOnl…
justsml Feb 6, 2025
fab5f16
refactor: Clean up Map0 component by removing comments and unused code
justsml Feb 6, 2025
8856666
refactor: Clean up Map0 component by removing comments and unused code
justsml Feb 6, 2025
1002c48
refactor: Clean up Map0 component by removing comments and unused code
justsml Feb 6, 2025
9d45d6d
refactor: Clean up Map0 component by removing comments and BrowserOnl…
justsml Feb 6, 2025
9802f3b
docs: Add live code examples to lineSlice, midpoint, and nearestNeigh…
justsml Feb 6, 2025
a822b29
refactor: Clean up Map0 component by removing comments and unused code
justsml Feb 6, 2025
3946c34
Update polygonSmooth
justsml Feb 6, 2025
4ebe7e8
refactor: Clean up Map0 component and add console.log for tangents
justsml Feb 6, 2025
82e5cb5
refactor: Clean up Map0 component and add console.log for line output
justsml Feb 6, 2025
4e3d290
refactor: Cleanup Map0 component by removing comments and unused code
justsml Feb 6, 2025
dd2aeba
refactor: Clean up Map0 component and add console.log statements
justsml Feb 6, 2025
f978baa
refactor: Clean up Map0 component and add console.log for bearing
justsml Feb 6, 2025
7104c28
refactor: Clean up Map0 component by removing comments and logging ou…
justsml Feb 6, 2025
45574b1
refactor: Clean up Map0 component and add console.log for distance
justsml Feb 6, 2025
04f9480
refactor: Clean up Map0 component and add console.log statements
justsml Feb 6, 2025
b128672
refactor: Clean up Map0 component by removing comments and logging ou…
justsml Feb 6, 2025
11be1a6
refactor: Update midpoint.mdx to include live code example for Map co…
justsml Feb 6, 2025
67ac0ae
refactor: Clean up Map0 component and add console.log statements
justsml Feb 6, 2025
75b316f
refactor: Disable scroll wheel zoom for ExampleMap component
justsml Feb 6, 2025
9b342c6
refactor: Clean up Map0 component and add console.log statements
justsml Feb 6, 2025
bd8837a
refactor: Clean up Map0 component by removing comments and logging ou…
justsml Feb 6, 2025
eac62dc
refactor: Clean up Map0 component and add console logging
justsml Feb 6, 2025
d908fb5
refactor: Clean up Map0 component and add console.log statements
justsml Feb 6, 2025
283f7e4
refactor: Clean up Map0 component by removing comments and logging ou…
justsml Feb 6, 2025
6e3d62c
refactor: Clean up Map0 component by removing comments and logging ou…
justsml Feb 6, 2025
6f679a9
refactor: Clean up Map0 component and add console.log statements
justsml Feb 6, 2025
5ce2356
refactor: Clean up Map0 component by removing comments and unused code
justsml Feb 6, 2025
132eac8
refactor: Clean up Map0 component by removing comments and logging ou…
justsml Feb 6, 2025
130a39d
refactor: Clean up Map0 component by removing comments and logging ou…
justsml Feb 6, 2025
fc7f1a9
refactor: Clean up Map0 component and add console.log statements
justsml Feb 6, 2025
d832ca4
refactor: Clean up Map0 component by removing comments and logging ou…
justsml Feb 6, 2025
835e58d
refactor: Clean up Map0 component by removing comments and logging ou…
justsml Feb 6, 2025
093a357
refactor: Clean up Map0 component by removing comments and logging ou…
justsml Feb 6, 2025
9a44b67
refactor: Clean up Map0 component and add console.log statements
justsml Feb 6, 2025
7a7afdb
refactor: Clean up Map0 component by removing comments and logging ou…
justsml Feb 6, 2025
558e3ed
refactor: Simplify ExampleMap component by removing unnecessary optio…
justsml Feb 6, 2025
2ab5542
refactor: Simplify Map0 component in centerMedian.mdx files
justsml Feb 6, 2025
189ad6c
refactor: Cleanup Map0 component in collect.mdx
justsml Feb 6, 2025
7aebc50
refactor: Update Map0 component in dissolve.mdx files to use live cod…
justsml Feb 6, 2025
c428276
refactor: Cleanup Map0 component in distance.mdx files
justsml Feb 6, 2025
1f12749
refactor: Simplify Map0 component in flatten.mdx files
justsml Feb 6, 2025
200dd7a
refactor: Update flip.mdx to use live code block and add console.log
justsml Feb 6, 2025
3ca7317
refactor: Simplify Map0 component in greatCircle.mdx files
justsml Feb 6, 2025
099e5ad
refactor: Simplify truncate.mdx map examples across versions
justsml Feb 6, 2025
2cb0e44
refactor: Update Map0 component in centerMedian.mdx and greatCircle.m…
justsml Feb 6, 2025
4d70f47
refactor: Simplify Map0 component in centerOfMass.mdx
justsml Feb 6, 2025
bc84978
refactor: Simplify Map0 component in centroid.mdx and remove unnecess…
justsml Feb 6, 2025
f7ea395
refactor: Cleanup Map0 component in clustersDbscan.mdx
justsml Feb 6, 2025
3022240
refactor: Simplify Map0 component in collect.mdx by removing comments…
justsml Feb 6, 2025
efed015
refactor: Cleanup Map0 component in convex.mdx
justsml Feb 6, 2025
3682fab
refactor: Cleanup Map0 component in difference.mdx
justsml Feb 6, 2025
3b3ae1e
refactor: Cleanup Map0 component in dissolve.mdx file
justsml Feb 6, 2025
da00800
refactor: Simplify Map0 component in flatten.mdx documentation
justsml Feb 6, 2025
2c5b660
refactor: Cleanup Map component in flip.mdx with live code and consol…
justsml Feb 6, 2025
653d563
refactor: Simplify Map0 component in centerOfMass.mdx example
justsml Feb 6, 2025
6ac928a
refactor: Cleanup Map0 component in centroid.mdx
justsml Feb 6, 2025
84f688d
refactor: Simplify collect.mdx Map0 component and remove unnecessary …
justsml Feb 6, 2025
526de11
refactor: Simplify Map0 component in convex.mdx by removing comments …
justsml Feb 6, 2025
cf06204
refactor: Cleanup Map0 component in difference.mdx
justsml Feb 6, 2025
e7c0fc5
refactor: Cleanup Map0 component in explode.mdx and simplify code str…
justsml Feb 6, 2025
705d2da
refactor: Simplify Map0 component in flatten.mdx documentation
justsml Feb 6, 2025
7794666
refactor: Simplify Map0 component and add console logging for flip ex…
justsml Feb 6, 2025
6c129d0
refactor: Simplify Map0 component in centerOfMass.mdx example
justsml Feb 6, 2025
09fc671
refactor: Simplify centroid example by removing comments and BrowserO…
justsml Feb 6, 2025
880d5d4
refactor: Cleanup Map0 component in collect.mdx
justsml Feb 6, 2025
47e26f4
refactor: Cleanup Map component in convex.mdx
justsml Feb 6, 2025
4885505
refactor: Cleanup Map0 component in difference.mdx
justsml Feb 6, 2025
7644789
refactor: Cleanup Map0 component in dissolve.mdx
justsml Feb 6, 2025
36f773e
refactor: Cleanup Map0 component in flatten.mdx
justsml Feb 6, 2025
29ce5d2
refactor: Simplify Map0 component and add console logging in flip.mdx
justsml Feb 6, 2025
5be73db
refactor: Simplify Map0 component in centerOfMass.mdx
justsml Feb 6, 2025
a171f58
refactor: Cleanup Map0 component in centroid.mdx
justsml Feb 6, 2025
686689b
refactor: Cleanup Map0 component in convex.mdx
justsml Feb 6, 2025
dfaa855
refactor: Cleanup Map0 component in difference.mdx
justsml Feb 6, 2025
dc0d9a7
refactor: Cleanup Map0 component in dissolve.mdx
justsml Feb 6, 2025
8fbccb9
refactor: Simplify Map0 component and add console logging for flip ex…
justsml Feb 6, 2025
5d64eaa
refactor: Cleanup Map0 component in rectangleGrid.mdx
justsml Feb 6, 2025
37529d5
refactor: Update Map function in buffer.mdx to improve logging and si…
justsml Feb 6, 2025
110de56
misc cleanup
justsml Feb 6, 2025
d88342f
refactor: Add console logging to Map functions for debugging output
justsml Feb 6, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
25 changes: 7 additions & 18 deletions docs/api/along.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -41,27 +41,16 @@ var options = { units: "miles" };
var along = turf.along(line, 200, options);
```

export function Map0() {
"use strict";
```javascript live
function Map() {
var point = turf.point([-90.54863, 14.616599]);
var buffered = turf.buffer(point, 500, { units: "miles" });

// jsdoc example start
var line = turf.lineString([
[-83, 30],
[-84, 36],
[-78, 41],
]);
var options = { units: "miles" };
console.log(buffered);

var along = turf.along(line, 200, options);

//addToMap
var addToMap = { along, line };
// jsdoc example end

return <ExampleMap addToMap={addToMap} />;
return <ExampleMap addToMap={{ point, buffered }} />;
}

<BrowserOnly>{() => <Map0 />}</BrowserOnly>
```

### Installation

Expand Down
17 changes: 6 additions & 11 deletions docs/api/area.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -41,10 +41,8 @@ var polygon = turf.polygon([
var area = turf.area(polygon);
```

export function Map0() {
"use strict";

// jsdoc example start
```javascript live
function Map() {
var polygon = turf.polygon([
[
[125, -15],
Expand All @@ -56,16 +54,13 @@ export function Map0() {
]);

var area = turf.area(polygon);

//addToMap
var addToMap = { polygon };
polygon.properties.area = area;
// jsdoc example end

return <ExampleMap addToMap={addToMap} />;
}
console.log(area);

<BrowserOnly>{() => <Map0 />}</BrowserOnly>
return <ExampleMap addToMap={{ polygon }} />;
}
```

### Installation

Expand Down
15 changes: 4 additions & 11 deletions docs/api/bbox.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -40,10 +40,8 @@ var bbox = turf.bbox(line);
var bboxPolygon = turf.bboxPolygon(bbox);
```

export function Map0() {
"use strict";

// jsdoc example start
```javascript live
function Map() {
var line = turf.lineString([
[-74, 40],
[-78, 42],
Expand All @@ -52,14 +50,9 @@ export function Map0() {
var bbox = turf.bbox(line);
var bboxPolygon = turf.bboxPolygon(bbox);

//addToMap
var addToMap = { line, bboxPolygon };
// jsdoc example end

return <ExampleMap addToMap={addToMap} />;
return <ExampleMap addToMap={{ line, bboxPolygon }} />;
}

<BrowserOnly>{() => <Map0 />}</BrowserOnly>
```

### Installation

Expand Down
15 changes: 4 additions & 11 deletions docs/api/bboxClip.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -45,10 +45,8 @@ var poly = turf.polygon([
var clipped = turf.bboxClip(poly, bbox);
```

export function Map0() {
"use strict";

// jsdoc example start
```javascript live
function Map() {
var bbox = [0, 0, 10, 10];
var poly = turf.polygon([
[
Expand All @@ -62,14 +60,9 @@ export function Map0() {

var clipped = turf.bboxClip(poly, bbox);

//addToMap
var addToMap = { bbox, poly, clipped };
// jsdoc example end

return <ExampleMap addToMap={addToMap} />;
return <ExampleMap addToMap={{ bbox, poly, clipped }} />;
}

<BrowserOnly>{() => <Map0 />}</BrowserOnly>
```

### Installation

Expand Down
16 changes: 4 additions & 12 deletions docs/api/bboxPolygon.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -36,22 +36,14 @@ var bbox = [0, 0, 10, 10];
var poly = turf.bboxPolygon(bbox);
```

export function Map0() {
"use strict";

// jsdoc example start
```javascript live
function Map() {
var bbox = [0, 0, 10, 10];

var poly = turf.bboxPolygon(bbox);

//addToMap
var addToMap = { poly };
// jsdoc example end

return <ExampleMap addToMap={addToMap} />;
return <ExampleMap addToMap={{ poly }} />;
}

<BrowserOnly>{() => <Map0 />}</BrowserOnly>
```

### Installation

Expand Down
17 changes: 5 additions & 12 deletions docs/api/bearing.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -38,26 +38,19 @@ var point2 = turf.point([-75.534, 39.123]);
var bearing = turf.bearing(point1, point2);
```

export function Map0() {
"use strict";

// jsdoc example start
```javascript live
function Map() {
var point1 = turf.point([-75.343, 39.984]);
var point2 = turf.point([-75.534, 39.123]);

var bearing = turf.bearing(point1, point2);

//addToMap
var addToMap = { point1, point2 };

point1.properties["marker-color"] = "#f00";
point2.properties["marker-color"] = "#0f0";
point1.properties.bearing = bearing;
// jsdoc example end

return <ExampleMap addToMap={addToMap} />;
return <ExampleMap addToMap={{ point1, point2 }} />;
}

<BrowserOnly>{() => <Map0 />}</BrowserOnly>
```

### Installation

Expand Down
16 changes: 6 additions & 10 deletions docs/api/bezierSpline.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -48,10 +48,8 @@ var line = turf.lineString([
var curved = turf.bezierSpline(line);
```

export function Map0() {
"use strict";

// jsdoc example start
```javascript live
function Map() {
var line = turf.lineString([
[-76.091308, 18.427501],
[-76.695556, 18.729501],
Expand All @@ -63,15 +61,13 @@ export function Map0() {

var curved = turf.bezierSpline(line);

//addToMap
var addToMap = { line, curved };
console.log('curved', curved);

curved.properties = { stroke: "#0F0" };
// jsdoc example end

return <ExampleMap addToMap={addToMap} />;
return <ExampleMap addToMap={{ line, curved }} />;
}

<BrowserOnly>{() => <Map0 />}</BrowserOnly>
```

### Installation

Expand Down
26 changes: 5 additions & 21 deletions docs/api/booleanIntersects.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -46,34 +46,18 @@ turf.booleanIntersects(line, point2);
//=true
```

export function Map0() {
"use strict";

// jsdoc example start
```javascript live
function Map() {
var point1 = turf.point([2, 2]);
var point2 = turf.point([1, 2]);
var line = turf.lineString([
[1, 1],
[1, 3],
[1, 4],
]);

turf.booleanIntersects(line, point1);
//=false

turf.booleanIntersects(line, point2);
//=true
var line = turf.lineString([[1, 1], [1, 3], [1, 4]]);

//addToMap
var addToMap = { point1, point2, line };
point1.properties["marker-color"] = "#f00";
point2.properties["marker-color"] = "#0f0";
// jsdoc example end

return <ExampleMap addToMap={addToMap} />;
return <ExampleMap addToMap={{ point1, point2, line }} />;
}

<BrowserOnly>{() => <Map0 />}</BrowserOnly>
```

### Installation

Expand Down
15 changes: 5 additions & 10 deletions docs/api/buffer.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -42,21 +42,16 @@ var point = turf.point([-90.54863, 14.616599]);
var buffered = turf.buffer(point, 500, { units: "miles" });
```

export function Map0() {
"use strict";

// jsdoc example start
```javascript live
function Map() {
var point = turf.point([-90.54863, 14.616599]);
var buffered = turf.buffer(point, 500, { units: "miles" });

//addToMap
var addToMap = { point, buffered };
// jsdoc example end
console.log('buffered', buffered);

return <ExampleMap addToMap={addToMap} />;
return <ExampleMap addToMap={{ point, buffered }} />;
}

<BrowserOnly>{() => <Map0 />}</BrowserOnly>
```

### Installation

Expand Down
15 changes: 4 additions & 11 deletions docs/api/center.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -41,28 +41,21 @@ var features = turf.points([
var center = turf.center(features);
```

export function Map0() {
"use strict";

// jsdoc example start
```javascript live
function Map() {
var features = turf.points([
[-97.522259, 35.4691],
[-97.502754, 35.463455],
[-97.508269, 35.463245],
]);

var center = turf.center(features);

//addToMap
var addToMap = { features, center };
center.properties["marker-size"] = "large";
center.properties["marker-color"] = "#000";
// jsdoc example end

return <ExampleMap addToMap={addToMap} />;
return <ExampleMap addToMap={{ features, center }} />;
}

<BrowserOnly>{() => <Map0 />}</BrowserOnly>
```

### Installation

Expand Down
15 changes: 4 additions & 11 deletions docs/api/centerMean.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -43,10 +43,8 @@ var options = { weight: "value" };
var mean = turf.centerMean(features, options);
```

export function Map0() {
"use strict";

// jsdoc example start
```javascript live
function Map() {
var features = turf.featureCollection([
turf.point([-97.522259, 35.4691], { value: 10 }),
turf.point([-97.502754, 35.463455], { value: 3 }),
Expand All @@ -55,17 +53,12 @@ export function Map0() {

var options = { weight: "value" };
var mean = turf.centerMean(features, options);

//addToMap
var addToMap = { features, mean };
mean.properties["marker-size"] = "large";
mean.properties["marker-color"] = "#000";
// jsdoc example end

return <ExampleMap addToMap={addToMap} />;
return <ExampleMap addToMap={{ features, mean }} />;
}

<BrowserOnly>{() => <Map0 />}</BrowserOnly>
```

### Installation

Expand Down
18 changes: 7 additions & 11 deletions docs/api/centerMedian.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -76,26 +76,22 @@ var points = turf.points([
var medianCenter = turf.centerMedian(points);
```

export function Map0() {
"use strict";

// jsdoc example start
```javascript live
function Map() {
var points = turf.points([
[0, 0],
[1, 0],
[0, 1],
[5, 8],
[5, 8]
]);

var medianCenter = turf.centerMedian(points);

//addToMap
var addToMap = { points, medianCenter };
// jsdoc example end
console.log('medianCenter', medianCenter);

return <ExampleMap addToMap={addToMap} />;
return <ExampleMap addToMap={{ points, medianCenter }} />;
}

<BrowserOnly>{() => <Map0 />}</BrowserOnly>
```

### Installation

Expand Down
Loading