Created
December 10, 2022 14:44
-
-
Save jarodium/0cfc2e094ea190495b2855ae3636775f to your computer and use it in GitHub Desktop.
turf-sandbox snippet
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// simply return a valid GeoJSON and it will be rendered on the map | |
var center = [-7.9308417796178245, 37.020828075270785]; | |
var radius = 5; | |
var options = {steps: 10, units: 'kilometers'}; | |
var circle = turf.circle(center, radius, options); | |
var smoothed = turf.polygonSmooth(circle, {iterations: 3}) | |
console.log(circle.geometry) | |
return turf.featureCollection([circle]); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment