1.1.0 • Published 8 years ago

interactive-earth-polygons v1.1.0

Weekly downloads
1
License
MIT
Repository
github
Last release
8 years ago

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]);