leaflet-radon
by Clemens Schmid
HTML
<script src=" https://cdnjs.cloudflare.com/ajax/libs/leaflet/1.0.0-rc.3/leaflet.js"></script>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/leaflet/1.0.0-rc.3/leaflet.css">
<script src="https://raw.githubusercontent.com/Leaflet/Leaflet.heat/gh-pages/dist/leaflet-heat.js"></script>
<div id="map"></div>
CSS
#map {
height: 500px;
width: 80%;
}
CoffeeScript
# prepare basemap
osmUrl = 'http://{s}.tile.osm.org/{z}/{x}/{y}.png'
osmAttrib = '© <a href="http://openstreetmap.org/copyright">OpenStreetMap</a> contributors'
osm = L.tileLayer(osmUrl,
maxZoom: 18
attribution: osmAttrib)
# initialize the map with basemap
map = L.map('map').setView([
17
75
], 5).addLayer(osm)
# coordinate vectors
lat = [14, 15, 16, 18, 19, 20]
lng = [72, 73, 74, 76, 77, 78]
# create pane
map.createPane 'circles'
map.getPane('circles').style.zIndex = 450
# add circles to map
for lati in lat
for lngi in lng
L.circle([
lati
lngi
], 50000,
color: 'black'
fillColor: '#black'
fillOpacity: 0.5
pane: 'circles').addTo(map)
# add heatmap to map
heatItem = new (L.FeatureGroup)
heat = L.heatLayer([
[
15
73
3000
]
[
19
77
10000
]
], radius: 25).addTo(heatItem)
heatItem.addTo(map)