Skip to content

Latest commit

 

History

History
43 lines (29 loc) · 1020 Bytes

File metadata and controls

43 lines (29 loc) · 1020 Bytes

NPM version Build Status Dependency Status

features

Manages features added to geojson sources predefined in map style.

Install

$ npm install --save @mapwhit/features

Usage

import init from '@mapwhit/features';

const features = init({
  map, // map object initialized with map style
});

const feature = features.add({
  source, // name of geojson source defined in map style
  data
});

features.remove(feature);

License

MIT © Natalia