-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathmain.js
More file actions
56 lines (52 loc) · 1.75 KB
/
Copy pathmain.js
File metadata and controls
56 lines (52 loc) · 1.75 KB
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
jQuery(document).ready(function(){
//Diagram
initspectrallibrary(); //diagram.js
inithistogram(); //diagram.js
//Console
initconsole(); //wcpsconsole.js
//GUI
initloader(); //loader.js
initdownloadify(); //downloadify.js
initloadregion(); //loadregion.js
inittabs(); //gui.js
resizecss(); //gui.js
initdragwindows(); //gui.js
initguievents(); //gui.js
//OpenLayers
initmap(); //planetmap.js
initmapevents(); //planetmap.events.js
initpanels(); //planetmap.js
initvectors(); //planetmap.js
//downloadAndCacheProducts(-290,290,-87,87);
//TOC
inittoc(); //toc.js
//URL Query
checksinglecollection(); //urlquery.js
checkregion(); //urlquery.js
checkmrdr(); //urlquery.js
checklonlat(); // urlquery.js
});
var productsCache = [];
function filterProducts(products)
{
var filteredProducts = [];
for(var i = 0; i < products.length; i++)
{
// Only show when data is in rasdaman, currently using inrasdaman list in inrasdaman.js
// This will need to work using GetCapabilities: http://fuzzytolerance.info/blog/parsing-wms-getcapabilities-with-jquery/
for(var j = 0; j < inrasdaman.length; j++)
{
var coll = products[i].pdsid.toLowerCase() + "_" + pcversion + "_" + ptversion;
if(inrasdaman[j] == coll)
{
filteredProducts.push(products[i]);
break;
}
}
}
return filteredProducts;
}
function downloadAndCacheProducts(westernlon,easternlon,minlat,maxlat)
{
productsCache = filterProducts(getProducts(false, westernlon, easternlon, minlat, maxlat));
}