interactive-earth-points
v1.1.0
Published
Display multiple points on an interactive earth
Readme
Interactive Earth Points
Display multiple points on an interactive earth.
See the Interactive Earth Handbook for an example of how to group interactive-earth modules together into a visualisation.
var sites = [
{
type: 'Point',
coordinates: [174.868542, -37.800608],
text: 'MetOcean, Raglan'
},
{
type: 'Point',
coordinates: [-122.0329646, 37.332112],
text: 'Apple, Cupertino'
}
];
var points = require('interactive-earth-points');
var pointsLayer = points({
classname: 'points',
radius: '15',
points: sites
});
...
layers.push(['points', pointsLayer]);