Package Exports
- turf-explode
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (turf-explode) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
turf-explode
Takes a Feature or FeatureCollection and return all vertices as a collection of points.
###Install
npm install turf-explode###Parameters
| name | description |
|---|---|
| fc | a geojson feature or featurecollection |
###Usage
explode(fc)###Example
var explode = require('turf-explode')
var polygon = require('turf-polygon')
var poly = polygon([[[0,0], [0,10], [10,10] , [10,0]]])
var vertices = explode(poly)
console.log(vertices)