-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
199 lines (164 loc) · 7.59 KB
/
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<meta name="description" content="">
<meta name="author" content="">
<title>SIGA Project</title>
<link type="text/css" rel="stylesheet" href="./css/ol3-wfs-t-main.css"/>
<link type="text/css" rel="stylesheet" href="./css/ol3-wfs-t-button-material.css"/>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/ol3/3.18.2/ol.css">
<link rel="stylesheet" href="https://fonts.googleapis.com/icon?family=Material+Icons">
<link rel="stylesheet" href="https://code.getmdl.io/1.2.1/material.indigo-pink.min.css">
<!-- Bootstrap core CSS -->
<link href="css/bootstrap.min.css" rel="stylesheet">
<!-- Custom styles for this template -->
<link href="css/simple-sidebar.css" rel="stylesheet">
</head>
<body onresize="resizeWindow()">
<div class="plex-display">
<div id="upload-img" class="upload" style="margin-top: 100px;">
<div class="upload-files">
<header>
<p>
<i class="fa fa-cloud-upload" aria-hidden="true"></i>
<span class="up">up</span>
<span class="load">load</span>
<span class="load"></span>
<span class="load">your image to start</span>
</p>
</header>
<div class="body" id="drop">
<i class="fa fa-file-text-o pointer-none" aria-hidden="true"></i>
<p class="pointer-none"><b>Drag and drop</b> files here <br/> or <a href="" id="triggerFile">browse</a>
to begin
the upload</p>
<input type="file" multiple="multiple"/>
</div>
<footer>
<div class="divider">
<span>
<AR> SELECTED IMAGES :</AR>
</span>
</div>
<div class="list-files" style="margin-bottom: 20px;">
<!-- template -->
</div>
<button class="importar"> Start</button>
<div class="plex-display">
<div>Enter the scale : </div>
<input id="inputScale" class="input" placeholder="1 pixel == ? m" type="number">
</div>
</footer>
</div>
</div>
</div>
<div id="map-wrapper" class="hidden">
<div id="wrapper">
<!-- Sidebar -->
<div id="sidebar-wrapper">
<div id="attribTable"></div>
</div>
<!-- /#sidebar-wrapper -->
<!-- Page Content -->
<div id="page-content-wrapper" onresize="resizeWindow()">
<div id="sub-page-content-wrapper" class="container-fluid">
<div id="map-wrapper" class="">
<div id="map" class="map"></div>
<div id="buttons">
<button title="Draw a point" id="btnPoint" class="mdl-button mdl-js-button mdl-button--fab mdl-js-ripple-effect mdl-button--mini-fab mdl-button--accent">
<i class="material-icons">add_location</i>
</button>
<button title="Draw a line" id="btnLine" class="mdl-button mdl-js-button mdl-js-ripple-effect mdl-button--fab mdl-button--mini-fab mdl-button--colored">
<i class="material-icons">timeline</i>
</button>
<button title="Draw an area" id="btnArea" class="mdl-button mdl-js-button mdl-js-ripple-effect mdl-button--fab mdl-button--mini-fab mdl-button--colored">
<i class="material-icons">signal_cellular_null</i>
</button>
<button title="Edit a shape" id="btnEdit" class="mdl-button mdl-js-button mdl-js-ripple-effect mdl-button--fab mdl-button--mini-fab mdl-button--colored">
<i class="material-icons">build</i>
</button>
<button title="Delete a shape" id="btnDelete" class="mdl-button mdl-js-button mdl-js-ripple-effect mdl-button--fab mdl-button--mini-fab mdl-button--colored">
<i class="material-icons">delete</i>
</button>
<button title="Delete all shapes (click on a shape to initiate deletion)" id="btnDeleteAll" class="mdl-button mdl-js-button mdl-js-ripple-effect mdl-button--fab mdl-button--mini-fab mdl-button--colored">
<i class="material-icons">delete_forever</i>
</button>
<button title="Intersect" id="btnOperations" class="mdl-button mdl-js-button mdl-button--fab mdl-js-ripple-effect mdl-button--mini-fab mdl-button--colored">
<i class="material-icons">layers</i>
</button>
<button title="Symbology" id="btnSymbologie" class="mdl-button mdl-js-button mdl-button--fab mdl-js-ripple-effect mdl-button--mini-fab mdl-button--colored">
<i class="material-icons">color_lens</i>
</button>
<button title="Selection tool" id="btnSelect" class="mdl-button mdl-js-button mdl-button--fab mdl-js-ripple-effect mdl-button--mini-fab mdl-button--colored">
<i class="material-icons">done</i>
</button>
<button title="Export" id="btnExport" class="mdl-button mdl-js-button mdl-button--fab mdl-js-ripple-effect mdl-button--mini-fab mdl-button--colored">
<i class="material-icons">file_download</i>
</button>
</div>
<div id="showLayer">
<strong> Filters : </strong><br>
<input id="layer0" type="checkbox" name="point layer" value="Point"> Points<br>
<input id="layer1" type="checkbox" name="line layer" value="LineString"> Roads<br>
<input id="layer2" type="checkbox" name="polygon layer" value="Polygon"> Areas<br>
</div>
<div style="font-weight: bold; margin-bottom: 15px;" id="coords"></div>
</div>
<div style="position: absolute; bottom: 0px; left: 50px;" >
<a style=" background-color: blueviolet !important;" href="#menu-toggle" class="btn btn-secondary" id="menu-toggle"><strong>Attributes Table</strong></a>
</div>
</div>
</div>
<!-- /#page-content-wrapper -->
</div>
<!-- /#wrapper -->
</div>
<!-- Insert this line above script imports -->
<script>if (typeof module === 'object') {window.module = module; module = undefined;}</script>
<script defer src="./js/code.getmdl.io-1.2.1-material.min.js"></script>
<script type="text/javascript" src="./js/cdnjs.cloudflare.com-ajax-libs-jquery-2.1.4-jquery.min.js"></script>
<script type="text/javascript" src="./js/cdnjs.cloudflare.com-ajax-libs-ol3-3.18.2.ol.js"></script>
<script type="text/javascript" src="js/main.js"></script>
<!-- Bootstrap core JavaScript -->
<script src="js/jquery.min.js"></script>
<script src="js/bootstrap.bundle.min.js"></script>
<!-- Insert this line after script imports -->
<script>if (window.module) module = window.module;</script>
<!-- Menu Toggle Script -->
<script>
sideBarToggleCounter = 0;
$("#menu-toggle").click(function(e) {
e.preventDefault();
$("#wrapper").toggleClass("toggled");
sideBarToggleCounter++;
});
</script>
<!-- Window Resize Script -->
<script>
// Create an empty attrib table
renderAttribTable();
document.getElementById("page-content-wrapper").style.height = "100%";
document.getElementById("sub-page-content-wrapper").style.height = "100%";
document.getElementById("map-wrapper").style.height = "100%";
document.getElementById("sub-page-content-wrapper").style.width = "100%";
document.getElementById("map-wrapper").style.width = "100%";
resizeWindow();
function resizeWindow() {
// if the sideBar is visible we retract it's size, else we add it
if (sideBarToggleCounter%2 == 1) w = (window.innerWidth - 350) + "px";
else w = window.innerWidth + "px";
document.getElementById("map").style.width = w;
h = (window.innerHeight - 50) + "px";
document.getElementById("page-content-wrapper").style.height = h;
document.getElementById("sub-page-content-wrapper").style.height = h;
document.getElementById("map-wrapper").style.height = h;
document.getElementById("map").style.height = h;
if (sideBarToggleCounter > 100)
sideBarToggleCounter =- 100;
}
</script>
</div>
</body>
</html>