Skip to content

Add Images to the planet that will move with the sphere projection, it also calculates and displays only front facing images for the sphere projection.

Notifications You must be signed in to change notification settings

Sheaffy/planetary.js-add-objects-plugin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 

Repository files navigation

planetary.js-add-objects-plugin

Add Objects/Images to the planet that will move with the sphere projection, it also calculates and displays only front facing images for the sphere projection.

Created as a plugin for https://github.com/BinaryMuse/planetary.js

To use this first import the file on your html after the main planetary.js file import.

<script type="text/javascript" src="/js/planetaryjs.js"></script>
<script type="text/javascript" src="/js/planetaryjs-objects.js"></script>

Once imported you can then load the plugin into the main planet object.

planet.loadPlugin(planetaryjs.plugins.objects());		

here is an example of it being used to add a object

planet.plugins.objects.add(-1.3167103, 50.6927176, { imagesrc:"/wizard.png" });

Plugin Options

{ 
speed: 2,
imagesrc:"/wizard.png",
imageheight:100,
imagewidth:100,
fade:true
}

About

Add Images to the planet that will move with the sphere projection, it also calculates and displays only front facing images for the sphere projection.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published