-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathV2X_MapVisualizer.aspx
More file actions
114 lines (92 loc) · 4.1 KB
/
V2X_MapVisualizer.aspx
File metadata and controls
114 lines (92 loc) · 4.1 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
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
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="V2X_MapVisualizer.aspx.cs" Inherits="Neaera_Website_2018.V2X_MapVisualizer" %>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<!-- <meta name="viewport" content="initial-scale=1.0, user-scalable=no"/> -->
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta http-equiv="content-type" content="text/html; charset=UTF-8" />
<title>Work Zone Map Data Visualizer</title>
<script src="https://code.jquery.com/jquery-3.5.0.js"></script>
<style>
.wzInfo_text {
height: 100%;
width: 234px;
position: absolute;
left: 5px;
top: 0px;
margin-top: 0px;
font-size: 13px;
background-color: lightyellow;
}
.overlay_btn {
height: 25px;
width: 120px;
position: absolute;
left: 55px;
/* top: 300px; */
/* background-color: lightgreen; */
font-size: 13px;
}
.wzLegends {
width: 170px;
background-color: lightblue;
position: absolute;
left: 28px;
/* bottom: 30px; */
margin-left: auto;
margin-right: auto;
}
.map_canvas {
width: calc(100% - 240px);
height: 100%;
position: absolute;
left: 240px;
top: 0px;
}
</style>
</head>
<body onload="startHere()">
<form id="form1" runat="server">
<!-- Define area to display WZ Infromation... -->
<p class="wzInfo_text" id="wzInfo_text" style="overflow-y: scroll"></p>
<!-- Button to overlay bounding box... -->
<!-- <button class="overlay_btn" onclick="displayMapNodes_drawRectBB();">Overlay WZ Map</button> -->
<!-- Show map legends... -->
<!-- <img src = "./Icons/Legends-RSZW6.png" class="wzLegends"> -->
<!-- Canvas for overlaying content on Google Map -->
<div class="map_canvas" id="map_canvas"></div>
<asp:HiddenField runat="server" ID="hiddenMarkers" />
<%--<div id="mapOverlay" style="height: 60px; background: #DDDDDD; position: absolute; top: 0px; left: 240px; right: 60px">
Adding Lane 1 Closure Pair (current marker: <b>Lane 1 Closing</b>)
</div>--%>
<div id="mapControlsDiv">
<button type="button" id="addLaneClosureBtn" onclick="add_lane_closure()" style="font-size: 16px">Add Lane Closure</button>
<button type="button" id="addWorkerPresenceBtn" onclick="add_work_presence()" style="font-size: 16px">Add Worker Presence</button>
<div id="mapBtnsOverlay" style="position: absolute; top: 0px; height: 50px; width: 100%; background: #DDDDDD; font-size: large; display: none">
Click To Add <b>Start Of Lane 1 Closure</b> Marker
</div>
</div>
<!--
In the following, insert your API key...
Acquire Google Map API key from: https://developers.google.com/maps/documentation/javascript/get-api-key
-->
<%--<script type="text/javascript"
src="https://maps.google.com/maps/api/js?key=api-key-here&libraries=geometry">
</script>--%>
<!-- Collected vehicle path and constructed WZ map Data... -->
<script type="text/javascript"
src="./Map Visualizer/RSZW_MAP_Data.js">
</script>
<!-- Test vehicle data - created using data collected from RSZW/LC application -->
<!-- The following will not be use for map visualization. ONLY WHEN TESTS are CONDUCTED to see the Results... -->
<!-- <script type="text/javascript"
src="file:\\C:\CAMP\V2I Projects\V2I - SA Extension 2\Task 14 - WZ Mapping\Test Data\Aug-2017\GM Buick 8-21-17\
RSZW-jsArray-dv2irszw_20170821_140058.js">
</script> -->
<!-- WZ map overlay on Google Satellite Map -->
<script type="text/javascript"
src="./Map Visualizer/RSZW_MapVisualization_v5.js" defer>
</script>
</form>
</body>
</html>