forked from tangrams/walkabout-style
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
137 lines (118 loc) · 3.86 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
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
<!doctype html>
<!--
Tangram: real-time WebGL rendering for OpenStreetMap
http://github.com/tangrams/tangram
http://mapzen.com
-->
<html lang="en-us">
<head>
<meta charset="utf-8">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
<title>Walkabout Style</title>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/leaflet/1.0.0-rc.1/leaflet.css" />
<style>
body {
margin: 0px;
border: 0px;
padding: 0px;
}
#map {
background: rgba(0, 0, 0, 0);
height: 100%;
width: 100%;
position: absolute;
}
.label {
width: auto;
/*margin-left: -100px;*/
position: absolute;
z-index: 500;
text-align: left;
margin: 10px;
background: #E1E1E1;
opacity: 0.9;
padding: 2px;
visibility: hidden;
/*text-shadow: -1px 0 black, 0 1px black, 1px 0 black, 0 -1px black;*/
/*word-wrap: break-word;*/
}
.label a {
color: white;
}
.label a:hover {
color: lightblue;
}
.labelInner {
padding: 3px 0px;
font-family: Helvetica, sans-serif;
font-weight: bold;
font-size: 24px;
color: #666;
opacity: 2.0;
margin: 0px;
}
.labelLine {
/*border: 2px solid gold;*/
}
.labelLine:hover {
/* border: 2px solid gold; */
-webkit-touch-callout: none;
-webkit-user-select: none;
-khtml-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
cursor: default;
}
</style>
</head>
<body>
<div class="label" id="popup"></div>
<div id="map"></div>
<!-- 3rd party libraries -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/leaflet/1.0.0-rc.1/leaflet.js"></script>
<!-- bog-standard leaflet URL hash -->
<script src="lib/leaflet-hash.js"></script>
<!-- Keymaster handles keyboard input -->
<script src="lib/keymaster.js"></script>
<!-- End of 3rd party libraries -->
<!-- Main tangram library -->
<script src="https://mapzen.com/tangram/0.8/tangram.min.js"></script>
<!-- Demo module -->
<script src="main.js"></script>
<!-- Adding a script block to post message to the parent container (think iframed demos) -->
<script type="text/javascript">
window.addEventListener("hashchange",function(){parent.postMessage(window.location.hash, "*")});
</script>
<!-- Mapzen map UI -->
<script src='https://mapzen.com/common/ui/mapzen-ui.min.js'></script>
<script>
MPZN.bug({
name: 'Mapzen Walkabout cartography',
link: 'https://tangrams.github.io/walkabout-style/',
tweet: 'Walkabout cartography from @mapzen',
repo: 'https://github.com/tangrams/walkabout-style/'
});
</script>
<script>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
ga('create', 'UA-47035811-1', 'auto');
ga('send', 'pageview');
</script>
<!--
<script>
MPZN.bug();
var cs = document.getElementById("mz-citysearch");
if (cs != null) cs.parentNode.removeChild(cs);
var gl = document.getElementById("mz-geolocator");
if (gl != null) gl.parentNode.removeChild(gl);
var lc = document.getElementsByClassName("leaflet-top leaflet-left")[0];
if (lc != null) lc.style.top = "0px";
</script>
-->
</body>
</html>