forked from brandonxiang/vtgeojson-heatmap
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
42 lines (34 loc) · 1.04 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
42
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Document</title>
<!--<script src="//cdn.bootcss.com/q.js/1.4.1/q.js"></script>-->
<link href="//cdn.bootcss.com/leaflet/1.0.0-rc.3/leaflet.css" rel="stylesheet">
<script src="//cdn.bootcss.com/leaflet/1.0.0-rc.3/leaflet-src.js"></script>
<script src="libs/vtgeojson.js"></script>
<script src="libs/leaflet-heat.js"></script>
<script src="index.js"></script>
<style>
body {
padding: 0;
margin: 0;
}
html,
body,
#map {
height: 100%;
}
</style>
</head>
<body>
<div id="map"></div>
<script>
var map = L.map('map').setView([22.5444235638, 113.9848308011], 13);
var tilelayer = L.tileLayer('http://{s}.tile.osm.org/{z}/{x}/{y}.png', {
attribution: '© <a href="http://osm.org/copyright">OpenStreetMap</a> contributors'
}).addTo(map);
L.vtGeojsonHeat(map).addTo(map);
</script>
</body>
</html>