-
Notifications
You must be signed in to change notification settings - Fork 11
/
index.html
executable file
·64 lines (49 loc) · 1.6 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
<!doctype html>
<!--
Tangram: real-time WebGL rendering for OpenStreetMap
https://github.com/tangrams/tangram
https://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">
<link rel="stylesheet" href="https://mapzen.com/js/mapzen.css">
<script src="https://mapzen.com/js/mapzen.min.js"></script>
<style>
body {
margin: 0px;
border: 0px;
padding: 0px;
}
#map {
height: 100%;
width: 100%;
position: absolute;
}
</style>
</head>
<body>
<div id="map"></div>
<!-- Main tangram library -->
<script src="https://mapzen.com/tangram/0.10/tangram.min.js"></script>
<!-- Demo setup -->
<script>
L.Mapzen.apiKey = 'mapzen-tDHBHDp'
var nyc = [40.70531887544228, -74.00976419448853];
var map = L.Mapzen.map('map', {
center: nyc,
zoom: 15,
scene: 'scene.yaml',
});
map.zoomControl.setPosition('topright')
<!-- var layer = Tangram.leafletLayer({ -->
<!-- scene: 'scene.yaml', -->
<!-- attribution: '<a href="https://mapzen.com/tangram" target="_blank">Tangram</a> | © OSM contributors | <a href="https://mapzen.com/" target="_blank">Mapzen</a>' -->
<!-- }); -->
<!-- layer.addTo(map); -->
<!-- map.setView(, 15); -->
</script>
</body>
</html>