forked from tankaru/OpenSwitchMapsWeb
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
195 lines (163 loc) · 5.66 KB
/
index.html
File metadata and controls
195 lines (163 loc) · 5.66 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
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
<html>
<head>
<title>OpenSwitchMaps web</title>
<!-- Global site tag (gtag.js) - Google Analytics -->
<script async src="https://www.googletagmanager.com/gtag/js?id=UA-154852876-1"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'UA-154852876-1');
</script>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.0.2/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-EVSTQN3/azprG1Anm3QDgpJLIm9Nao0Yz1ztcQTwFspd3yD65VohhpuuCOmLASjC" crossorigin="anonymous">
<style>
@media screen and (max-width: 480px){
body{
}
}
body {
font-family: sans-serif;
}
strong {
font-weight: bold;
color: red;
}
#location, #description{
font-size: small;
}
ul, ol {
margin: 0px;
}
#maps {
display: table;
}
.submaps{
display: inline-block;
vertical-align: top;
white-space: nowrap;
padding: 0 0 0 20px;
}
.title{
background-color: #eee;
font-weight: bold;
font-size: larger;
text-align: center;
color: #000;
}
ul.submaps li{
list-style: none;
margin: 5px;
}
img {
margin: 0px 5px;
vertical-align: middle;
}
caption {
padding: 2px;
}
td {
border-style: none;
}
.item_hide {
display: none;
}
.item_error {
background-color: #ddd;
//display: none;
}
.setting-list {
float:left;
margin-left: 1em;
}
</style>
</head>
<body>
<nav class="navbar navbar-primary bg-primary text-light p-0" id="main_navbar">
<h1 class="h4"> 🗺️OpenSwitchMaps Web🗺️</h1>
<div>
Map URL:<input type="url" id="inputbox_map_url" placeholder="Enter Map URL" onkeypress="input_key_press(event);">
<button id="button_refresh_links" class="btn btn-secondary btn-sm" onclick="button_refresh_links();">Refresh links</button>
</div>
</nav>
<div class="container-fluid alert-warning">
<div id="description">
<p>OpenSwitchMaps helps you to switch between map services, such as Google maps, OpenStreetMap, Bing map and so
on.
You can jump to another map service keeping the location and the zoom level</p>
<h2 class="h5">How to use</h2>
<ol>
<li><strong>First, add a bookmark(bookmarklet) to your browser</strong>: Drag following link to your
bookmark bar: <a
href="javascript:(function(){ window.location.href='https://tankaru.github.io/OpenSwitchMapsWeb/index.html#'+location.href;})();">OpenSwitchMaps
Web</a> OR bookmark following text(bookmarklet)</li>
<code>javascript:(function(){
window.location.href='https://tankaru.github.io/OpenSwitchMapsWeb/index.html#'+location.href;})();</code>
<li>Open a map service, for example <a href="https://www.openstreetmap.org">OpenStreetMap</a></li>
<li>Open saved bookmarklet</li>
<li>You will move to a web page(here). And you will get links to jump to other map service.</li>
</ol>
</div>
</div>
<div class="container-fluid">
<div class="row">
<div class="col-sm-6 bg-light">
<div class="container-fluid">
<div id="location">
<h2 class="h5">Location</h2>
<ul>
<div style="display:none">
<li>URL: <i><span id="showurl"></span></i></li>
<li>Lat: <i><span id="lat"><span></i>, Lon: <i><span id="lon"><span></i>, Zoom: <i><span
id="zoom"><span></i></li>
<li>Country code: <span id="country_code"></span></li>
</div>
<li>Address: <i><span id="address"></span></i></li>
</ul>
</div>
<span id="sorry"></span>
</div>
</div>
<div class="col-sm-6 bg-info">
<div class="container-fluid text-light">
<h2 class="h5"> Settings</h2>
<div class="form-check setting-list">
<input class="form-check-input" type="checkbox" value="" id="checkbox_show_descriptions" onchange="save_settings();">
<label class="form-check-label" for="checkbox_show_descriptions">Show descriptions</label>
</div>
<div class="form-check setting-list">
<input class="form-check-input" type="checkbox" value="" id="checkbox_show_all" onchange="save_settings();">
<label class="form-check-label" for="checkbox_show_all">Show all maps</label>
</div>
</div>
</div>
</div>
</div>
<div class="container-fluid bg-white">
<div id="results">
<h2 class="h5">Open maps:</h2>
<div id="maps"></div>
<div id="custom_maps"></div>
</div>
</div>
<div class="container-fluid bg-secondary text-light">
<h2 class="h5">Notes</h2>
<ul >
<li><sup>*</sup> means 'Jump-to only'.</li>
<li>Go to <a href="https://tankaru.github.io/OpenSwitchMapsWeb/index.html">Instruction page</a> to get map
links.
<li>Browser extension version is also available. For <a href="https://chrome.google.com/webstore/detail/openswitchmaps/cfkddjlocfecchnemnnmmpdjcohgmkij">Chrome</a>, <a href="https://addons.mozilla.org/firefox/addon/openswitchmaps/">Firefox</a>.</li>
<li>Comments and bug reports are welcome at <a href="https://github.com/tankaru/OpenSwitchMapsWeb">Github</a>.
<li>Address data is obtained from <a
href="https://operations.osmfoundation.org/policies/nominatim/">Nominatim</a>.
</ul>
</div>
<script src="https://code.jquery.com/jquery-3.2.1.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.0.2/dist/js/bootstrap.bundle.min.js" integrity="sha384-MrcW6ZMFYlzcLA8Nl+NtUVF0sA7MsXsP1UyJoMp4YLEuNSfAP+JcXn/tWtIaxVXM" crossorigin="anonymous"></script>
<script src="maps.js"></script>
<script src="main.js"></script>
<script>
</script>
</body>
</html>