Share your code. npm Orgs help your team discover, share, and reuse code. Create a free org »

interactive-earth-points

1.1.0 • Public • Published

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

Keywords

none

install

npm i interactive-earth-points

Downloadsweekly downloads

19

version

1.1.0

license

MIT

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar
  • avatar