Skip to content

Commit

Permalink
Limit lookUP requests
Browse files Browse the repository at this point in the history
Limit lookUP to 5 requests to stop the lookUP server being hammered.
However, you can now also include arrays of results stored in local
JSON files.
  • Loading branch information
slowe committed Jan 4, 2017
1 parent c7ab694 commit e2fc440
Show file tree
Hide file tree
Showing 4 changed files with 504 additions and 14 deletions.
27 changes: 27 additions & 0 deletions index.html
Expand Up @@ -146,6 +146,15 @@
lang: 'ar'
});

var planetarium11 = $.virtualsky({
id: 'starmap11',
projection: 'stereo',
constellations: true,
objects: 'messier.json',
fov: 15
});


});
</script>
</head>
Expand Down Expand Up @@ -175,6 +184,7 @@ <h1>VirtualSky</h1>
<li><a href="#ex7">Example 7</a></li>
<li><a href="#ex8">Example 8</a></li>
<li><a href="#ex9">Example 9</a></li>
<li><a href="#ex10">Example 10</a></li>
</ul>
</li>
<li><a href="#options">Options</a>
Expand Down Expand Up @@ -408,6 +418,23 @@ <h2 id="instructions">Instructions for embedding</h2>
<div id="starmap10" class="planetarium" style="width:944x;height:400px;"></div>
</li>

<li class="example" id="ex10">A default view using <code>stereo</code> projection showing <code>objects</code> (in this case the Messier catalogue) included from a local JSON file
<pre class="prettyprint lang-js">
$(document).ready(function() {

var planetarium = $.virtualsky({
id: 'starmap',
projection: 'stereo',
objects: 'messier.json'
});
});
</pre>
<pre class="prettyprint lang-html">
&lt;div id="starmap" style="width:944px;height:400px;"&gt;&lt;/div&gt;
</pre>
<div id="starmap11" class="planetarium" style="width:944x;height:400px;"></div>
</li>


</ol>

Expand Down

0 comments on commit e2fc440

Please sign in to comment.