This repository has been archived by the owner on Jan 10, 2020. It is now read-only.
forked from tangrams/cinnabar-style
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
executable file
·126 lines (105 loc) · 3.37 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
<!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>Tangram: Cinnabar Style</title>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/leaflet/1.0.0-beta.2/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: 0px;
background: #333;
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-size: 16px;
color: white;
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-beta.2/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>
<!-- Main tangram library -->
<script src="https://mapzen.com/tangram/0.6/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: 'Tangram',
link: 'https://mapzen.com/projects/tangram',
tweet: 'Tangram Cinnabar style from @mapzen',
repo: 'https://github.com/tangrams/cinnabar-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>
</body>
</html>