-
Notifications
You must be signed in to change notification settings - Fork 6
/
test.html
55 lines (48 loc) · 1.84 KB
/
test.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
<!DOCTYPE html>
<html lang='en'>
<head>
<title>OpenStreetMap Ukraine</title>
<meta charset='utf-8'>
<meta name='viewport' content='width=device-width, initial-scale=1'>
<link rel='shortcut icon' href='favicon.png' type='image/x-icon'>
<link href='https://api.mapbox.com/mapbox-assembly/v0.22.0/assembly.min.css' rel='stylesheet'>
<script async defer src='https://api.mapbox.com/mapbox-assembly/v0.22.0/assembly.js'></script>
<script src='https://api.tiles.mapbox.com/mapbox-gl-js/v0.48.0/mapbox-gl.js'></script>
<link href='https://api.tiles.mapbox.com/mapbox-gl-js/v0.48.0/mapbox-gl.css' rel='stylesheet' />
<style>
/* body { margin:0; padding:0; }
#map { position:relative; top:0; bottom:0; width:100%; } */
header {
display: table;
position: relative;
width: 100%;
height: 100%;
background: url(img/new_bridge.jpg) no-repeat center center scroll;
-webkit-background-size: cover;
-moz-background-size: cover;
background-size: cover;
-o-background-size: cover;
}
</style>
</head>
<body>
<header id="top" class="header h600">
<div class="grid">
<div class="col col--12">
<h1>OpenStreetMap Україна</h1>
<h3>Вільна мапа – створювати яку може кожен</h3>
</div>
</div>
</header>
<div id="map" class="h600"></div>
<script>
mapboxgl.accessToken = 'pk.eyJ1IjoiYW5keWdvbCIsImEiOiJwSUo1SV9ZIn0.5Y4I6L-HlwNhbMMSzhU0Mg';
var map = new mapboxgl.Map({
container: 'map', // container id
style: 'mapbox://styles/mapbox/streets-v9', // stylesheet location
center: [31.421, 48.600], // starting position [lng, lat]
zoom: 5 // starting zoom
});
</script>
</body>
</html>