Skip to content

NorthIsUp/orbital2

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

41 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

See it in action here http://map.labs.disqus.com/

Full disclosure: This is literally the first javascript I have written that was not in a w3c schools sandbox, sorry if it is more pythonic than javascript.

The WebGL Globe is an open platform for visualizing geographic information in WebGL enabled browsers. It supports data in JSON format, a sample of which you can find [here] (https://github.com/dataarts/dat.globe/raw/master/globe/population909500.json). dat.globe makes heavy use of the Three.js library, and is still in early open development.

making a globe

The globe requires a container to be drawn in, and for you to start the animation.

var $container = $('#container');
var globe = new ORBITAL.Globe($container);
globe.animate();

Adding data to the globe

Adding a point to the globe will occur in realtime and you can do it whenever you want.

globe.addPoint(lat, lng, mag);

The globe internally keeps track of points you have added. If you use the same latitude and longitude it will update the existing point instead of creating a new one.

To intentionally alter metadata on an existing point use the globe.getPoint(lat, lng) method.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published