-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
56 lines (33 loc) · 1.02 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
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>MapZen static test</title>
<link rel="stylesheet" href="css/leaflet.css">
<link rel="stylesheet" href="css/style.css">
<script src="js/jquery.min.js"></script>
<script src="js/leaflet.js"></script>
<script src="js/tangram.min.js"></script>
</head>
<body>
<div id="map" style="width: 100%; height: 100%; min-width: 1000px; min-height: 1000px; margin: auto;"></div>
<script>
var map = L.map('map');
var layer = Tangram.leafletLayer({
// swapping back to nyc
// works -> scene: 'scene3d.yaml',
scene: 'walkabout-style.yaml',
// amman
//scene: 'refill-style.yaml',
attribution: 'test'
});
layer.addTo(map);
// amman
//map.setView([31.952300 , 35.922638 ], 11);
// testing nyc metro area
map.setView([40.707776, -74.015261], 16);
//map.setView([-74.01747501,40.70571558], 16);
</script>
</body>
</html>