-
Notifications
You must be signed in to change notification settings - Fork 0
/
_archived_index.html
executable file
·217 lines (217 loc) · 9.57 KB
/
_archived_index.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
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
<!DOCTYPE html>
<html>
<head>
<meta name="viewport" content="width=device-width,user-scalable=no,minimum-scale=1.0,maximum-scale=1.0">
<title> Spire Data Visualizer </title>
<meta charset="utf-8">
<link rel="shortcut icon" href="img/spire_symb_red.png">
<!-- 3rd-Party Libraries for graphs -->
<script type="text/javascript" src="lib/vega-5.js"></script>
<script type="text/javascript" src="lib/vega-lite-4.js"></script>
<script type="text/javascript" src="lib/vega-embed-6.js"></script>
<!-- 3rd-Party Libraries for maps -->
<link rel="stylesheet" type="text/css" href="lib/openlayers.css" />
<script type="text/javascript" src="lib/openlayers.js"></script>
<!-- 3rd-Party Libraries for JSON viewer UI (some customization) -->
<link rel="stylesheet" type="text/css" href="lib/jsonview.css" />
<script type="text/javascript" src="lib/jsonview.js"></script>
<!-- simple w3schools.com snippet for making a DOM element draggable -->
<script type="text/javascript" src="lib/draggable_element.js"></script>
<!-- Custom CSS -->
<link rel="stylesheet" type="text/css" href="css/main.css" />
<link rel="stylesheet" type="text/css" href="css/map.css" />
<link rel="stylesheet" type="text/css" href="css/token.css" />
<link rel="stylesheet" type="text/css" href="css/vessels.css" />
<link rel="stylesheet" type="text/css" href="css/weather/weather_graphs_popup.css" />
<link rel="stylesheet" type="text/css" href="css/weather/toggleswitch.css" />
<link rel="stylesheet" type="text/css" href="css/weather/wms.css" />
<!-- Custom Weather Stats JS -->
<script type="text/javascript" src="js/weather/configure_graphs.js"></script>
<script type="text/javascript" src="js/weather/parse_data.js"></script>
<script type="text/javascript" src="js/weather/create_graphs.js"></script>
<script type="text/javascript" src="js/weather/get_spire_forecast.js"></script>
<!-- Custom Map JS -->
<script type="text/javascript" src="js/map/feature_styles.js"></script>
<script type="text/javascript" src="js/map/map_maker.js"></script>
<script type="text/javascript" src="js/map/wms_layers.js"></script>
<!-- Custom Vessels JS (requires map functions to draw vessels on map) -->
<script type="text/javascript" src="js/get_spire_vessels.js"></script>
<!-- Custom JS executed when the page and all DOM elements have loaded -->
<script type="text/javascript" src="js/on_load.js"></script>
</head>
<body>
<!-- page overlay triggered when either of
the Token Submit Form or the Weather Graphs are visible -->
<div id="grayPageOverlay"></div>
<!----------------->
<!-- Top of App -->
<!----------------->
<!-- Spire logo in the top left of the map element -->
<a id="logo" href="https://www.spire.com/" target="_blank" title="Spire Global"></a>
<!-- buttons near the top left of the map element -->
<div id="buttons">
<!-- button to trigger Draw Polygon feature
note: this button's text will change for the Agricultural setting -->
<button id="drawPolygonArea">Get 500 Vessels in Area</button>
<!-- button to trigger Click-Map-For-Point-Forecast feature -->
<button id="requestForecast">Get Weather Forecast</button>
<!-- button to trigger popup for selecting WMS layer -->
<button id="configureWMS">Configure WMS</button>
</div>
<!-- the map coordinates at the mouse's current position
displayed in the top right of the map element (lon, lat) -->
<span id="mouseCoordinates"></span>
<!-- shading around edges of map -->
<div id="mapBorder"></div>
<!-- the OpenLayers map component -->
<div id="map" class="map"></div>
<!------------------------------>
<!-- Token Submit Form Popup -->
<!------------------------------>
<div id="tokenPopup" class="popup">
<h1 id="token_title" class="title">Spire API Token</h1>
<form id="tokenForm">
<input id="token" type="password" placeholder="Please Enter Your Token Here" />
<input id="submitToken" type="submit" />
</form>
</div>
<!------------------------>
<!-- Vessel Info Popup -->
<!------------------------>
<div id="vesselPopup" class="popup">
<h1 id="vessel_title" class="title">Spire Vessels API Data</h1>
<button id="getVesselForecast">Spire Forecast</button>
<button id="closeVesselPopup" class="remove">
X
</button>
<div id="vesselInfo"></div>
</div>
<!--------------------->
<!-- WMS Time Popup -->
<!--------------------->
<div id="wmsTimePopup">
<h1 id="wms_time_display"></h1>
</div>
<!------------------------------->
<!-- WMS Layers Legend Popups -->
<!------------------------------->
<div id="legend_wms_0" class="legendPopup popup"></div>
<div id="legend_wms_1" class="legendPopup popup"></div>
<!----------------------->
<!-- WMS Layers Popup -->
<!----------------------->
<div id="wmsPopup" class="popup">
<h1 id="wms_title" class="title">Spire Weather WMS Layers</h1>
<button id="closeWMSPopup" class="remove">
X
</button>
<div id="cropWMSExtent"></div>
<!-- container for WMS dropdown selectors -->
<div class="wms_dropdowns" style="width:200px;">
<!-- base layer configuration -->
<div class="wms_config">
<!-- first WMS selector dropdown -->
<div class="wms_dd_name">Base Layer:</div>
<select id='wms_layer_select_0' class='wms_layer_select'>
<option value='none'>Loading Available Layers...</option>
</select>
<!-- first style selector dropdown -->
<div id="wms_config_style_0" class="wms_config_style">
<div class="wms_dd_name">
Style:
<button id="show_legend_0">Legend</button>
</div>
<select id='wms_style_select_0' class='wms_style_select'>
<option value='none'>None</option>
</select>
</div>
</div>
<!-- overlay layer configuration -->
<div class="wms_config">
<!-- second WMS selector dropdown -->
<div class="wms_dd_name">Overlay Layer:</div>
<select id='wms_layer_select_1' class='wms_layer_select'>
<option value='none'>Loading Available Layers...</option>
</select>
<!-- second style selector dropdown -->
<div id="wms_config_style_1" class="wms_config_style">
<div class="wms_dd_name">
Style:
<button id="show_legend_1">Legend</button>
</div>
<select id='wms_style_select_1' class='wms_style_select'>
<option value='none'>None</option>
</select>
</div>
</div>
</div>
<!-- controls for playing through WMS time -->
<div id="wms_time_controls">
<div id="wms_time_buttons">
<div id="wms_play_stop" class="play"></div>
<div id="time_slider_display"></div>
<div id="popout_time"></div>
</div>
<input id="wms_time_slider" type="range" min="0" max="50" value="0" class="slider">
</div>
</div>
<!--------------------------->
<!-- Weather Graphs Popup -->
<!--------------------------->
<div id="weatherGraphsPopup" class="popup">
<h1 id="forecast_title" class="title">Spire Weather Forecast</h1>
<h4 id="forecast_point_label" class="title"></h4>
<button id="closeWeatherGraphsPopup" class="remove">
X
</button>
<div id="toggle_forecast">
<span id="week" class="selected">Week</span>
<div class="switch" title="Switch Forecast">
<input id="forecast_switch" type="checkbox" class="switch-input">
<label for="toggle"><i></i></label>
<!-- round "LED" indicator for toggle -->
<!-- <span></span> -->
</div>
<span id="day">Day</span>
</div>
<!-- the order of the DIV elements here
is the order in which the graphs will be displayed
regardless of which ones are created first in the JavaScript code -->
<div id="weather_graphs">
<!-- maritime -->
<div id="sea_surface_temp"></div>
<div id="wave_height"></div>
<div id="ocean_currents_speed"></div>
<div id="ocean_currents_direction"></div>
<!-- agricultural -->
<div id="ag_dew_point_temperature"></div>
<div id="surface_temperature"></div>
<div id="sensible_heat_flux"></div>
<div id="latent_heat_flux"></div>
<div id="specific_humidity"></div>
<div id="net_upward_longwave_flux_at_top_of_atmosphere"></div>
<div id="surface_net_downward_shortwave_flux"></div>
<div id="surface_net_downward_longwave_flux"></div>
<div id="surface_net_upward_shortwave_flux"></div>
<div id="surface_net_upward_longwave_flux"></div>
<div id="soil_temperature_0_10cm"></div>
<div id="soil_moisture_0_10cm"></div>
<div id="soil_temperature_10_40cm"></div>
<div id="soil_moisture_10_40cm"></div>
<div id="soil_temperature_40_100cm"></div>
<div id="soil_moisture_40_100cm"></div>
<div id="soil_temperature_100_200cm"></div>
<div id="soil_moisture_100_200cm"></div>
<!-- basic -->
<div id="wind_speed"></div>
<div id="wind_direction"></div>
<div id="wind_gust"></div>
<div id="precip"></div>
<div id="air_temp"></div>
<div id="dew_point_temp"></div>
<div id="rel_hum"></div>
<div id="air_press_sea_level"></div>
</div>
</div>
</body>
</html>