Skip to content
Generic Globe to put your own data
JavaScript
Find file
Failed to load latest commit information.
js Update colors
README.md Fix readme
index.html Update colors
item.png Enable picking and callback when an item is clicked. Added color cust…

README.md

Simple Globe to put your own data with latitude/longitude

You can instanciate it like that:

var canvas = document.getElementById("3DView");
var options = {
   globeBackColor: "#333333FF",
   globeFrontColor: "#888888aa",
   globeLinesColor: "#000000FF"
};

var globe = new Globe(canvas,options);

var clickCallback = function() {
   console.log("cliked on image");
};

globe.addImage(48.8566667, 2.3509871, yourImage);
globe.addImage(58.8566667, 2.2509871, yourOtherImage, {}, clickCallback );

Test Me

Something went wrong with that request. Please try again.