-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
36 lines (32 loc) · 883 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link href='https://api.mapbox.com/mapbox-gl-js/v1.12.0/mapbox-gl.css' rel='stylesheet' />
<style>
*{
margin: 0;
padding: 0;
}
#map{
width:100vw;
height:100vh;
}
</style>
<title>CORONA MAP</title>
</head>
<body>
<div id='map' ></div>
</body>
<script src='https://api.mapbox.com/mapbox-gl-js/v1.12.0/mapbox-gl.js'></script>
<script>
mapboxgl.accessToken = 'pk.eyJ1IjoibmFuY3lhbnUiLCJhIjoiY2tnZHR0MWY3MDM4NDJxcGY3cHFvbndmYiJ9.vZoiqsz6O3Bo_oJy4wK5ig';
var map = new mapboxgl.Map({
container: 'map',
style: 'mapbox://styles/mapbox/dark-v10',
zoom:1, center:[0,20]
});
</script>
<script src="index.js"></script>
</html>