-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
41 lines (35 loc) · 1.69 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
<!DOCTYPE html>
<html>
<head>
<meta charset='utf-8' />
<title></title>
<meta name='viewport' content='initial-scale=1,maximum-scale=1,user-scalable=no' />
<!-- Mapbox -->
<script src='https://api.tiles.mapbox.com/mapbox-gl-js/v0.39.1/mapbox-gl.js'></script>
<link href='https://api.tiles.mapbox.com/mapbox-gl-js/v0.39.1/mapbox-gl.css' rel='stylesheet' />
<!-- Yandex -->
<script src="https://api-maps.yandex.ru/2.1/?lang=en_US" type="text/javascript"></script>
<style>
body { margin:0; padding:0; font-family: Helvetica, Arial, sans-serif;}
#maps-wrapper { display: flex; position: absolute; top: 0; left: 0; right: 0; bottom: 0; width: 100%; height: 100%; flex-direction: row; }
#labels-wrapper { display: flex; position: absolute; top: 0; left: 0; right: 0; bottom: 0; width: 100%; height: 60px; line-height: 60px; flex-direction: row; z-index: 30000; }
.mapContainer { display: block; width: 100%; height: 100%; border: 1px solid #555; background: #f0f0f0; }
.labelContainer { font-size: 17px; text-align: center; display: block; width: 100%; color: #fff; background: rgba(0,0,0,0.7); }
</style>
</head>
<body>
<div id='labels-wrapper'>
<div class="labelContainer">Yandex(drag&zoom here)</div>
<div class="labelContainer">Mapbox</div>
<div class="labelContainer">OSM</div>
<div class="labelContainer">@GIS</div>
</div>
<div id='maps-wrapper'>
<div class="mapContainer" id='map-yandex'></div>
<div class="mapContainer" id='map-mapbox'></div>
<div class="mapContainer" id='map-osm'></div>
<div class="mapContainer" id='map-2gis'></div>
</div>
<script src='src/compare.js'></script>
</body>
</html>