JSPM

turf-featurecollection

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

turf featureCollection module

Package Exports

  • turf-featurecollection

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-featurecollection) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

turf-featurecollection

build status

turf featureCollection module

turf.featurecollection(features)

Takes one or more Feature|Features and creates a FeatureCollection

Parameters

parameter type description
features Feature input Features

Example

var features = [
 turf.point([-75.343, 39.984], {name: 'Location A'}),
 turf.point([-75.833, 39.284], {name: 'Location B'}),
 turf.point([-75.534, 39.123], {name: 'Location C'})
];

var fc = turf.featurecollection(features);

//=fc

Returns FeatureCollection, a FeatureCollection of input features

Installation

Requires nodejs.

$ npm install turf-featurecollection

Tests

$ npm test