-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.html
37 lines (33 loc) · 882 Bytes
/
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
<!DOCTYPE html>
<html>
<head>
<script src='https://api.mapbox.com/mapbox-gl-js/v0.12.0/mapbox-gl.js'></script>
<link href='https://api.mapbox.com/mapbox-gl-js/v0.12.0/mapbox-gl.css' rel='stylesheet' />
<script src='mapbox-gl-scale.js'></script>
<link href='mapbox-gl-scale.css' rel='stylesheet' />
<style>
body { margin:0; padding:0; }
.map {
position:absolute;
width:100%;
height:100%;
top:0;
right:0;
}
</style>
</head>
<body>
<div id="map" class="map">
</div>
<script>
mapboxgl.accessToken = 'pk.eyJ1IjoiYW1pc2hhczE1NyIsImEiOiJjaW1uOWNkMnEwMGQxdHNtNHdiamd3b2dyIn0.V0u5PjZhjKeJ0SKBMRqLeg';
var map = new mapboxgl.Map({
container: 'map',
style: 'mapbox://styles/mapbox/streets-v8',
center: [-79.4512, 43.6568],
zoom: 0,
});
var scale = new mapboxgl.Scale();
map.addControl(scale);</script>
</body>
</html>