JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 20767
  • Score
    100M100P100Q135868F
  • License MIT

turf explode module

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

Build Status

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)