-
Notifications
You must be signed in to change notification settings - Fork 34
/
Copy pathbeta.html
159 lines (136 loc) · 5.1 KB
/
beta.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
<!DOCTYPE html>
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8" />
<title>Tiny world map - a Leaflet map for offline and low-bandwidth web apps</title>
<link rel="icon" href="data:image/svg+xml,<svg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 100 100%22><text y=%22.9em%22 font-size=%22100%22>🌍</text></svg>">
<!-- <link rel="manifest" href="/manifest.json"> -->
<meta http-equiv="content-type" content="text/html; charset=UTF-8" />
<script>
L_NO_TOUCH = false;
L_DISABLE_3D = false;
</script>
<style>html, body {width: 100%;height: 100%;margin: 0;padding: 0;}</style>
<style>#map {position:absolute;top:0;bottom:0;right:0;left:0;}</style>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/leaflet.js"></script>
<script src="https://code.jquery.com/jquery-3.7.1.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/Leaflet.awesome-markers/2.0.2/leaflet.awesome-markers.js"></script>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/dist/leaflet.css"/>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css"/>
<link rel="stylesheet" href="https://netdna.bootstrapcdn.com/bootstrap/3.0.0/css/bootstrap.min.css"/>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@fortawesome/[email protected]/css/all.min.css"/>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/Leaflet.awesome-markers/2.0.2/leaflet.awesome-markers.css"/>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/gh/python-visualization/folium/folium/templates/leaflet.awesome.rotate.min.css"/>
<meta name="viewport" content="width=device-width,
initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
<style>
#map_ca70b9b57c8c9d3a71488be09115f9b2 {
position: relative;
width: 100.0%;
height: 100.0%;
left: 0.0%;
top: 0.0%;
}
.leaflet-container { font-size: 1rem; }
</style>
<script src="dist/beta/tiny-world-all-10000.js"></script>
<style>
html {
font-size: 12px;
font-family: Ubuntu, "Segoe UI", "Lucida Grande", sans-serif;
}
.leaflet-control-attribution {
font-size: 11px;
}
.horizontal-button {
padding: 5px 10px;
background: #fff !important;
white-space: nowrap;
/* clear: none !important; */
}
.horizontal-button a {
width: auto !important;
}
.topbar {
pointer-events: none;
text-align: center;
position: absolute;
width: 100%;
font-size: 22px;
bottom: 2%;
padding: 25px;
z-index: 2002;
}
.topbar span {
background: rgba(255,255,255,1);
display: inline-block;
margin-bottom: 5px;
padding: 3px 5px;
box-shadow: 0 0 4px rgba(0,0,0,.9);
}
.topbar a {
pointer-events: auto;
}
span.about {
margin-bottom: 18px;
top: 0px;
}
/* horizontal-button:not(:first-child) { */
/* clear: none! important; */
/* } */
@media only screen and (max-width: 700px) {
.topbar {
font-size: 1em !important;
top: 0;
}
.topbar button {
font-size: 12px !important;
}
.topbar span {
position: absolute;
bottom: 0;
margin: 40px 20px;
left: 0px;
padding: 8px;
}
span.about {
top: 0;
margin-top: 20px;
bottom: auto;
}
}
</style>
</head>
<body>
<div class="folium-map" id="map_ca70b9b57c8c9d3a71488be09115f9b2" ></div>
<div class="topbar">
<span class="about">
tinyworldmap is an ODBL-licensed map for offline-first and low-bandwidth web apps. You're free to <a href=" https://github.com/tinyworldmap/tiny-world-map">use it</a>.
</span>
<span>
If your organization requires a custom map, such as a city map, a road map, or a map in another language, please <a href="mailto:[email protected]?body=Hi Bob,">contact us</a> for a quote.
</span>
</div>
<script>
var map_ca70b9b57c8c9d3a71488be09115f9b2 = L.map(
"map_ca70b9b57c8c9d3a71488be09115f9b2",
{
center: [40.0, 15.0],
crs: L.CRS.EPSG3857,
zoom: 3,
zoomControl: false,
preferCanvas: true,
worldCopyJump: true,
}
);
L.control.scale().addTo(map_ca70b9b57c8c9d3a71488be09115f9b2);
</script>
<script>
if ("serviceWorker" in navigator) {
navigator.serviceWorker.register("/service-worker.js").catch(e => console.error(e));
}
var $$ = function (e) { return document.querySelector(e) }
let map = window[$$(".folium-map").id]
new L.GridLayer.TinyWorld({tileSize: 256, maxZoom: 18}).addTo(map)
</script>
</body>