interactive-earth-polygons
v1.1.0
Published
Display polygons on an interactive earth
Readme
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]);