JSFiddle - React, Tailwind, and code Playground

by Vignesh Gopalakrishnan

HTML

<script src="https://cdnjs.cloudflare.com/ajax/libs/leaflet/0.7.3/leaflet.js"></script>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/leaflet/0.7.3/leaflet.css">
<script src="https://api.tiles.mapbox.com/mapbox.js/plugins/leaflet-heat/v0.1.3/leaflet-heat.js"></script>
<div id="map"></div>

CSS

#map {
    width:400px;
    height:400px;
}

JavaScript

var addressPoints = [
[-37.8210922667, 175.2209316333]
];

var map = L.map('map').setView([-37.8210922667, 175.2209316333], 18);

var heat = L.heatLayer(addressPoints, {
    maxZoom: 18,
    gradient:{0.4: 'blue', 0.65: 'lime', 1: 'red'}
}).addTo(map);

var land = L.tileLayer.wms("http://demo.opengeo.org/geoserver/wms", {
    layers: 'maps:ne_50m_land',
    format: 'image/png',
    transparent: true,
    attribution: "© OpenGeo"
}).addTo(map);

document.getElementsByClassName('leaflet-tile-pane')[0].style.zIndex = 10;