-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmap.html
More file actions
33 lines (29 loc) · 979 Bytes
/
map.html
File metadata and controls
33 lines (29 loc) · 979 Bytes
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
<!DOCTYPE html>
<html>
<head>
<meta charset='utf-8' />
<title>Display buildings in 3D</title>
<meta name='viewport' content='initial-scale=1,maximum-scale=1,user-scalable=no' />
<script src='https://api.tiles.mapbox.com/mapbox-gl-js/v0.41.0/mapbox-gl.js'></script>
<link href='https://api.tiles.mapbox.com/mapbox-gl-js/v0.41.0/mapbox-gl.css' rel='stylesheet' />
<style>
body { margin:0; padding:0; }
#map { position:absolute; top:0; bottom:0; width:100%; }
</style>
</head>
<body>
<div id="map" style="width:100;height:100"></div>
<script>
mapboxgl.accessToken = 'pk.eyJ1IjoiY2hpZHp6eSIsImEiOiJjajZ2bmM3bzkweDlhMnhwZ29mdG00cWRyIn0.k0U5-_wtySKMPaezDilrTQ';
var map = new mapboxgl.Map({
style: 'mapbox://styles/chidzzy/cj9hvb90haa8s2slrqy89vem9',
center: [151.2296, -33.9182],
zoom: 16,
pitch: 40,
bearing: 20,
hash: true,
container: 'map'
});
</script>
</body>
</html>