-
Notifications
You must be signed in to change notification settings - Fork 0
/
heatmap.html
45 lines (43 loc) · 1.38 KB
/
heatmap.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
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<link href="https://yandex.st/bootstrap/2.3.2/css/bootstrap.min.css" rel="stylesheet">
<style type="text/css">
html, body, .hero-unit {
min-height: 100%;
height: 100%;
margin: 0px;
}
#YMapsID {
width: 900px;
height: 500px;
}
</style>
<script src="https://api-maps.yandex.ru/2.1/?lang=ru-RU" type="text/javascript"></script>
<script src="/vendor/heatmap.min.js" type="text/javascript"></script>
<script src="/result/data.js" type="text/javascript"></script>
<script type="text/javascript">
ymaps.ready(function () {
ymaps.modules.require(['Heatmap'], function (Heatmap) {
let heatmap = new Heatmap(data, {});
heatmap.setMap(
new ymaps.Map('YMapsID', {
center: [56.326887,44.005986],
controls: ['zoomControl', 'typeSelector', 'fullscreenControl'],
zoom: 5,
type: 'yandex#hybrid'
})
);
});
});
</script>
</head>
<body>
<div class="hero-unit">
<div class="container">
<div id="YMapsID"></div>
</div>
</div>
</body>
</html>