Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!DOCTYPE html>
- <html>
- <head>
- <title>Leaflet Map with Heatmap Demo </title>
- <meta charset="utf-8" />
- <link
- rel="stylesheet"
- href="http://cdn.leafletjs.com/leaflet-0.7/leaflet.css"
- />
- </head>
- <body>
- <div id="map" style="width: 100%; height: 600px"></div>
- <script src="http://cdn.leafletjs.com/leaflet-0.7/leaflet.js"> </script>
- <script src="http://leaflet.github.io/Leaflet.heat/dist/leaflet-heat.js"> </script>
- <script>
- var quakePoints = [
- [-41.5396,174.1242,10.7345],
- [-38.8725,175.9561,3.6901],
- [-41.8992,174.3117,5.6968]
- ];
- var map = L.map('map').setView([-41.5546,174.146], 10);
- mapLink =
- '<a href="http://openstreetmap.org">OpenStreetMap</a>';
- L.tileLayer(
- 'http://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png', {
- attribution: '© ' + mapLink + ' Contributors',
- maxZoom: 18,
- }).addTo(map);
- var heat = L.heatLayer(quakePoints,{
- radius: 20,
- blur: 15,
- maxZoom: 17,
- }).addTo(map);
- </script>
- </body>
- </html>
- val someDF = Seq(
- (-41.5396,174.1242,10.7345),
- (-38.8725,175.9561,3.6901),
- (-41.8992,174.3117,5.6968)
- ).toDF("lat", "long", "value")
Add Comment
Please, Sign In to add comment