-
Notifications
You must be signed in to change notification settings - Fork 17
/
loader.html
75 lines (68 loc) · 2.5 KB
/
loader.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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<title>GeoTemCo</title>
<script src="js/Util/Publisher.js"></script>
<script src="js/Build/Loader/DynaJsLoader.js"></script>
<script src="js/Build/Loader/Loader.js"></script>
</head>
<body>
<noscript>
<div style="width: 22em; position: absolute; left: 50%; margin-left: -11em; color: red; background-color: white; border: 1px solid red; padding: 4px; font-family: sans-serif">
Your web browser must have JavaScript enabled in order for this application to display correctly.
</div>
</noscript>
<div id="mapContainerDiv" style="position:relative;"></div>
<div id="plotContainerDiv" style="position:relative;"></div>
<div id="tableContainerDiv" style="position:relative;"></div>
<script>
Publisher.Subscribe( 'GeoTemCoReady', this, function(){
var datasets = [];
var mapDiv = document.getElementById("mapContainerDiv");
var map = new WidgetWrapper();
var mapWidget = new MapWidget(map,mapDiv,{
mapTitle: "Publication Place",
alternativeMap : {
name: '1715',
url: '/geoserver/wms',
layer: 'historic:cntry1715'
}
});
var timeDiv = document.getElementById("plotContainerDiv");
var time = new WidgetWrapper();
var timeWidget = new TimeWidget(time,timeDiv,{
timeTitle: "Publication Date"
});
var tableDiv = document.getElementById("tableContainerDiv");
var table = new WidgetWrapper();
var tableWidget = new TableWidget(table,tableDiv);
var kml1 = GeoTemConfig.getKml('data/heine.kml');
datasets.push(new Dataset(GeoTemConfig.loadKml(kml1),'Heinrich Heine'));
var kml2 = GeoTemConfig.getKml('data/kafka.kml');
datasets.push(new Dataset(GeoTemConfig.loadKml(kml2),'Franz Kafka'));
var kml3 = GeoTemConfig.getKml('data/goethe.kml');
datasets.push(new Dataset(GeoTemConfig.loadKml(kml3),'Johann Wolfgang von Goethe'));
map.display(datasets);
time.display(datasets);
table.display(datasets);
/*
$.ajax({
url: 'data/test2.json',
async: false,
dataType: 'json',
success: function(json){
var data = STIStatic.loadSpatioTemporalJSONData(json);
gui.initializeMapGUI("mapContainerDiv");
gui.initializePlotGUI("plotContainerDiv");
gui.initializeTableGUI("tableContainerDiv");
SpaceWrapper.display([data]);
TimeWrapper.display([data]);
TableWrapper.display([data],['Test']);
}
});
*/
});
</script>
</body>
</html>