Created
December 10, 2022 14:44
-
-
Save jarodium/172276a8b6cf837070ad9caeb5e328d7 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); | |
| 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