-
Notifications
You must be signed in to change notification settings - Fork 2
/
index.html
97 lines (92 loc) · 3.49 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
<!DOCTYPE html>
<html lang="ja">
<head>
<meta charset="utf-8">
<title>Geo-Explorer</title>
<link rel="stylesheet" href="css/dist/typicons/typicons.min.css">
<link rel="stylesheet" href="css/dist/min.css" media="all">
<script src="https://maps.google.com/maps/api/js?key=AIzaSyDUBjLFALdIKp3xGngOxVHtvPxx-ISMIWU&language=en"></script>
<script src="js/dist/app-min.js"></script>
</head>
<body>
<div id="wrapper">
<div id="map_google" class="map-canvas"><!-- google map --></div>
<div id="map_osm" class="map-canvas"><!-- OpenStreetMap --></div>
<div id="map_gss" class="map-canvas"><!-- GSI std. --></div>
<div id="controls" class="clearfix">
<div id="search_box" class="control-elm">
<span class="typcn typcn-zoom icon-search"></span>
<input id="input_address" class="round" type="textbox" placeholder="Press Enter to Geocode">
<p class="message round"></p>
</div>
<div class="control-elm">
<select id="searcher-switch" class="gx-switch ease-transition round"></select>
</div>
<div id="bookmark_box" class="control-elm">
<span id="btn_bookmark" class="typcn typcn-bookmark icon-bookmark round" title="Ctrl+M to open/close"></span>
<div id="bookmark">
<div class="bookmark_form">
<span class="typcn typcn-plus icon-plus ease-transition round"></span>
<input id="input_bookmark" type="textbox" placeholder="Add as..">
</div>
<ul></ul>
</div>
</div>
<div class="control-elm">
<select id="map-switch" class="gx-switch ease-transition round"></select>
</div>
</div>
<div id="informations">
<h2>Map Center</h2>
<div id="center_info"></div>
<h2>Marked Point</h2>
<div id="clicked_point"></div>
<div id="address_info"></div>
</div>
</div>
<div class="copyright">© 2015 poppycocker. <a href="https://github.com/poppycocker/GeoExplorer" target="_blank">>> view on GitHub</a></div>
<script type=text/template id="tmpl_point_info">
1st,2nd MeshCode: <%= meshcode %><br>
<input type="text" value="<%= latLngStr %>" class="llstring"><br>
<%= lat %>, <%= lng %><br>
<%= lat256s %>, <%= lng256s %><br>
</script>
<script type=text/template id="tmpl_href_google">
<a href="https://www.google.com/maps/@<%= lat %>,<%= lng %>,<%= zoom %>z" target="_blank">>>Google Maps</a>
</script>
<script type=text/template id="tmpl_href_osm">
<a href="https://openstreetmap.jp/map#zoom=<%= zoom %>&lat=<%= lat %>&lon=<%= lng %>&layers=00B" target="_blank">>>OpenStreetMap.jp</script>
</script>
<script type=text/template id="tmpl_address_info_google">
<h3><a href="#<%= latLng.getString() %>"><%= address %></a></h3>
<p>types: <%= types %></p>
<ul class="address_compo">
<% _.each(addressCompos, function(compo) { %>
<li><%= compo.types %>: <em><%= compo.longName %></em></li>
<% }); %>
</ul>
</script>
<script type=text/template id="tmpl_address_info_nominatim">
<h3><img src="<%= icon %>"><a href="#<%= latLng.getString() %>"><%= display_name %></a></h3>
<p>
osm_type: <%= osm_type %><br>
osm_id: <%= osm_id %><br>
place_id: <%= place_id %><br>
type: <%= type %><br>
class: <%= cls %>
</p>
<ul class="address_compo">
<% _.each(address, function(compo) { %>
<li><%= compo.type %>: <em><%= compo.val %></em></li>
<% }); %>
</ul>
</script>
<script type=text/template id="tmpl_bookmark_unit">
<%= locationName %>
<span class="typcn typcn-delete icon-delete-bookmark"></span>
</script>
<script type=text/template id="tmpl_switch_unit">
<%= name %>
</script>
</body>
</html>