-
Notifications
You must be signed in to change notification settings - Fork 18
/
VectorLayer_HEALPix.html
56 lines (40 loc) · 1.3 KB
/
VectorLayer_HEALPix.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
<html>
<head>
<title>AstroWeb example</title>
<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
<script type="text/javascript" src="http://code.jquery.com/jquery-1.7.1.min.js"></script>
<script src="require.min.js"></script>
<script type="text/javascript">
require(['../src/AstroWeb'], function (AstroWeb)
{
var globe = new AstroWeb.Globe( { canvas: "AstroWebCanvas",
showWireframe: false,
continuousRendering: true } );
var astroNavigator = new AstroWeb.AstroNavigation(globe, { inertia: true });
new AstroWeb.Stats(globe.renderContext,{element: "fps",verbose: true});
var cdsLayer = new AstroWeb.HEALPixLayer( { baseUrl: "/Alasky/DssColor/"} );
globe.setBaseImagery( cdsLayer );
var vectorLayer = new AstroWeb.VectorLayer();
globe.addLayer( vectorLayer );
$.ajax({
url: "Euclid.json",
success: function(data)
{
vectorLayer.addFeatureCollection( data );
}
});
$(window).keypress( function(event) {
if ( event.which == 115 ) {
var cdsLayer = new AstroWeb.HEALPixLayer( { baseUrl: "/Alasky/SDSS/Color/"} );
globe.setBaseImagery( cdsLayer );
}
});
});
</script>
</head>
<body>
<canvas id="AstroWebCanvas" style="border: none;" width="1280" height="500"></canvas>
<br/>
<div id="fps" style="font-weight:bold"></div>
</body>
</html>