-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.html
64 lines (62 loc) · 3.55 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
<!DOCTYPE html>
<html>
<head>
<script src="https://maps.googleapis.com/maps/api/js?libraries=drawing,geometry"></script>
<script type="text/javascript" src="javascript/gmaps.js"></script>
<script type="text/javascript" src="javascript/scripts.js"></script>
<script type="text/javascript" src="https://code.jquery.com/jquery-2.2.1.min.js"></script>
<link rel="stylesheet" type="text/css" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css">
<script type="text/javascript" src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/js/bootstrap.min.js"></script>
<script type="text/javascript" src="javascript/papaparse.min.js"></script>
<link href="css/styles.css" rel="stylesheet" type="text/css">
<meta charset=utf-8 />
<title>Spatial Spreadsheet</title>
</head>
<body>
<nav class="navbar navbar-default navbar-inverse navbar-fixed-top">
<div class="container-fluid">
<!-- Brand and toggle get grouped for better mobile display -->
<div class="navbar-header">
<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1" aria-expanded="false">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="navbar-brand" href="#" onclick="resetCenter()" data-toggle="tooltip" data-placement="bottom" title="Return map to center">Spatial Spreadsheet</a>
</div>
<!-- Collect the nav links, forms, and other content for toggling -->
<div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
<div class="nav navbar-nav navbar-left">
<div class="btn btn-default btn-file btn-primary">
Upload .csv<input type="file" id="file" accept="text/csv" onchange="startRead()">
</div>
<p class="navbar-text pull-right" id="filename"></p>
</div>
<ul class="nav navbar-nav navbar-right">
<button type="submit" class="btn btn-default" id="export" onclick="exportPoints()" disabled="true">Export Records</button>
<button type="submit" class="btn btn-default" id="deleteShape" onclick="deleteShape()" disabled="true">Delete Shape</button>
<li><a href='#' data-target="#myModal" data-toggle="modal">About</a></li>
</ul>
</div><!-- /.navbar-collapse -->
</div><!-- /.container-fluid -->
</nav>
<div class="modal fade" id="myModal" role="dialog">
<div class="modal-dialog modal-lg">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal">×</button>
<h4 class="modal-title">Spatial Spreadsheet</h4>
</div>
<div class="modal-body">
<p>Use the upload button to plot a .csv file on the map. The file must have a header that includes both latitude and longitude to plot correctly. After the data has plotted, use the drawing tools that appear at the top-center of the map to draw a polygon around the records you would like to export. Clicking the export button will auto-download the data if you're using Chrome; experiences with other browsers may vary.</p>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
</div>
</div>
</div>
</div>
<div id="map"></div>
</body>
</html>