-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathindex.html
103 lines (88 loc) · 5.36 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
<!DOCTYPE html>
<html lang="en" xmlns="http://www.w3.org/1999/xhtml" xmlns:og="http://ogp.me/ns#">
<head>
<title>Geomask</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no" />
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<link href="static/lib/bootstrap/css/bootstrap.css" rel="stylesheet" />
<link href="static/lib/bootstrap/css/bootstrap-responsive.css" rel="stylesheet" />
<!-- HTML5 shim, for IE6-8 support of HTML5 elements -->
<!--[if lt IE 9]>
<script src="static/lib/bootstrap/js/html5shiv.js"></script>
<![endif]-->
<link href="static/page.css" rel="stylesheet" />
<!-- From http://www.iconfinder.com/icondetails/36182/32/map_icon -->
<link href="static/images/favicon.ico" rel="shortcut icon" />
<meta property="og:title" content="Geomask - highlight an area of interest using Google Maps"/>
<meta property="og:type" content="non_profit"/>
<meta property="og:url" content="http://maps.vasile.ch/geomask/"/>
<meta property="og:image" content="http://maps.vasile.ch/geomask/static/images/embed_social_200px.png"/>
</head>
<body>
<div class="container">
<div class="masthead">
<h3 class="muted2">maps.vasile.ch/geomask</h3>
</div>
<div class="row">
<div class="span9">
<div id="map_canvas"></div>
<div><strong>Coordinates:</strong> <span id="coordinates"></span> <strong>Zoom:</strong> <span id="zoom"></span></div>
</div>
<div class="span3">
<h4>Select the area of interest</h4>
<div class="control-group section">
<div class="controls">
<div class="input-prepend">
<span class="add-on"><i class="icon-globe pointer" id="geolocation_trigger"></i></span>
<input class="span2" type="text" id="area_of_interest" />
</div>
</div>
</div>
<h4>Draw the geomask</h4>
<div class="section">
<table class="table hide table-condensed table-striped table-bordered" id="table_paths">
<thead>
<tr>
<th>Path name</th>
<th>Actions</th>
</tr>
</thead>
<tbody></tbody>
</table>
<button class="btn btn-primary" id="polygon_main_add" disabled="disabled">New hole</button>
<button class="btn btn-danger" id="polygon_reset">RESET</button>
</div>
<h4>Grab the coordinates</h4>
<div class="section">
<div class="export">
<span class="label label-success">GeoJSON</span>
<span class="label label-important hide" id="geojson_alert">Invalid GeoJSON</span>
<textarea rows="5" class="btn-block" id="coordinates_geojson"></textarea>
<div class="pull-right">
<button class="btn btn-small btn-primary" id="geojson_load">LOAD</button>
</div>
<div class="clearfix"></div>
</div>
<div class="export">
<span class="label label-success">KML<Polygon></span>
<textarea rows="5" class="btn-block" id="coordinates_kml"></textarea>
</div>
<div class="export">
<span class="label label-success">google.maps.Polygon</span>
<textarea rows="5" class="btn-block" id="coordinates_gmaps_polygon"></textarea>
</div>
</div>
<h4>About</h4>
<p>This tool was created by <a href="http://www.vasile.ch">Vasile Coțovanu</a> and the source code is available on <a href="https://github.com/vasile/geomask" target="_new">Github</a>.</p>
<p>Please use <a href="https://docs.google.com/forms/d/1ZWCqfF8OvRBlMPHMc5FbL6T3zYhQ-p18B8IIwMt1sRs/viewform">this form</a> to send your suggestions and / or feedback. Thanks !</p>
</div>
</div>
</div>
<div id="github_badge">
<a href="https://github.com/vasile/geomask" target="_blank"><img src="https://s3.amazonaws.com/github/ribbons/forkme_right_green_007200.png" alt="Fork me on GitHub"></a>
</div>
<script src="http://code.jquery.com/jquery-1.9.1.js"></script>
<script src="http://maps.googleapis.com/maps/api/js?v=3.12&sensor=false&libraries=places"></script>
<script src="static/page.js" type="text/javascript" charset="utf-8"></script>
</body>
</html>