Can't get planetary.js to work -


so have been on plantary.js page, ran though checks, installed asked etc. cannot site load. googled, , looked here well. have used quickstart said well. doing wrong? not versed in jquery although have working knowledge of , believe installed correctly (i'm running other jquery works fine.

code:

<html> <head>   <script type='text/javascript' src='http://d3js.org/d3.v3.min.js'></script>   <script type='text/javascript' src='http://d3js.org/topojson.v1.min.js'></script>   <script type='text/javascript' src='planetaryjs.min.js'></script> </head> <body>   <canvas id='globe' width='500' height='500'></canvas>   <script type='text/javascript' src='yourapp.js'></script> </body> </html> 

js (yourapp.js):

var planet = planetaryjs.planet(); // can remove statement if `world-110m.json` // in same path html page: planet.loadplugin(planetaryjs.plugins.earth({   topojson: { file: 'world-110m.json' } })); // make planet fit in canvas planet.projection.scale(250).translate([250, 250]); var canvas = document.getelementbyid('globe'); planet.draw(canvas); 

i appreciate help!

thanks!

your code works me, of these files not in right place:

make sure files have right names , in same directory index.html.


Comments

Popular posts from this blog

javascript - AngularJS custom datepicker directive -

javascript - jQuery date picker - Disable dates after the selection from the first date picker -