-
Notifications
You must be signed in to change notification settings - Fork 3
/
index.html
91 lines (87 loc) · 3.98 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Mapsplit map [alpha]</title>
<base target="_blank">
<link rel="stylesheet" href="bower_components/Leaflet/dist/leaflet.css" />
<link rel="stylesheet" href="css/reset.css">
<link rel="stylesheet" href="css/unreset.css">
<link rel="stylesheet" href="css/style.css">
<link rel="stylesheet" href="bower_components/Leaflet.label/dist/leaflet.label.css" />
<link rel="stylesheet" href="lib/Leaflet.zoomslider/src/L.Control.Zoomslider.css" />
<link rel="stylesheet" href="lib/Leaflet.zoomdisplay/leaflet.zoomdisplay.css" />
<link rel="stylesheet" href="http://norkart.github.io/Leaflet-MiniMap/Control.MiniMap.css" />
<style>
.leaflet-label {
font: 12px "Helvetica Neue", Arial, Helvetica, sans-serif;
font-weight: normal;
}
</style>
</head>
<body>
<div id="container">
<div id="map" style="height: 400px;"></div>
<div id="panel">
<div class="content">
<h3>Mapsplit map</h3><sub>[pre-alpha2]</sub>
<p class="subtitle">DIY OSM PBF vector tiles</p>
<input type="radio" name="visibility" value="visible" checked>Show vectors<br>
<input type="radio" name="visibility" value="hidden">Hover only (hide vectors)
<p>
<div class="group">
<div class="field">
<input type="checkbox" id="landuse" checked="checked">
</div>
<div class="label">
show areas (landuse, ...)<br>
(auto-hide >= z17)
</div>
</div>
<p>
<input type="radio" name="renderer" value="svg" checked>SVG
<input type="radio" name="renderer" value="canvas">Canvas (exp., no interaction)
<p>
MapCSS style (experimental):
<select id="style">
<option value="default">default</option>
<option value="nightlife">nightlife</option>
<option value="tourism-berlin">tourism berlin</option>
<option value="schwarzplan">schwarzplan</option>
<option value="test">test</option>
<option value="custom"><custom></option>
</select>
<textarea id="mapcss"></textarea>
<button id="apply">apply</button>
<div id="message" class="hidden"></div>
<div class="infotext">
<a href="https://github.com/nrenner/mapsplit-map">GitHub</a>,
<a href="http://www.openstreetmap.org/user/ikonor/diary">blog</a>,
<a href="https://github.com/nrenner/mapsplit-map#licenses">credits</a> ·
contact: <a href="https://twitter.com/ikonor">Twitter</a>,
<a href="http://www.openstreetmap.org/message/new/ikonor">OSM</a>
</p>
</div>
</div>
</div>
<div id="footer" style="top: 420px;">
<a id="largemap" href="#">large map</a>
<a id="smallmap" class="hidden" href="#">small map</a>
</div>
<div id="zoomhint" class="hidden leaflet-bar">
Zoom in to 13 for vector tiles
</div>
<div id="progress-container"></div>
</div>
<script type="text/javascript">
if (window.location.href.indexOf('canvas=true') >= 0) {
window.L_PREFER_CANVAS = true;
}
</script>
<script src="bower_components/Leaflet/dist/leaflet-src.js"></script>
<script src="bower_components/Leaflet.label/dist/leaflet.label.js"></script>
<script src="http://norkart.github.io/Leaflet-MiniMap/Control.MiniMap.js" type="text/javascript"></script>
<script src="tiles/bounds.js" type="text/javascript"></script>
<script src="bundle.js"></script>
</body>
</html>