interactive-earth-polygons

1.1.0 • Public • Published

Interactive Earth Polygons

Display polygons on an interactive earth.

See the Interactive Earth Handbook for an example of how to group interactive-earth modules together into a visualisation.

var polygons = require('interactive-earth-polygons');
var polygonLayer = polygons({
  classname: 'polygon',
  geo: {
    type: 'Polygon'
    coordinates: [
        [165, -48],
        [180, -48],
        [180, -34],
        [165, -34]
    ]
  }
});

...

layers.push(['polygon', polygonLayer]);

Readme

Keywords

none

Package Sidebar

Install

npm i interactive-earth-polygons

Weekly Downloads

0

Version

1.1.0

License

MIT

Last publish

Collaborators

  • ascendzor
  • tcoats