JSFiddle - React, Tailwind, and code Playground

by aidankirrane

HTML

<!DOCTYPE html>
<html>
<head>
<link rel="stylesheet" href="http://cdn.leafletjs.com/leaflet-0.4.4/leaflet.css" />
<script src="http://cdn.leafletjs.com/leaflet-0.4.4/leaflet.js"></script>
</head>
<body>
    <div id="map" style="width: 600px; height: 400px"></div>
</body>
</html>

JavaScript

var mapquestUrl = 'http://otile{s}.mqcdn.com/tiles/1.0.0/osm/{z}/{x}/{y}.png';

var mapTileLayerURLCloudmade = 'http://{s}.tile.cloudmade.com/0d1e2f5b57584b95be639cca69805da0/116025/256/{z}/{x}/{y}.png';

var strCloudmadeAtribution = 'Intergraph &copy; 2013 <a href="http://openstreetmap.org">OpenStreetMap</a> | &copy; 2013 <a href="http://cloudmade.com">CloudMade</a>';

var mapquestAttribution = "Data CC-By-SA by <a href='http://openstreetmap.org/' target='_blank'>OpenStreetMap</a>, Tiles Courtesy of <a href='http://open.mapquest.com' target='_blank'>MapQuest</a>";

var cloudmadeAttribution = "Data CC-By-SA by <a href='http://openstreetmap.org/' target='_blank'>OpenStreetMap</a>, Tiles Courtesy of <a href='http://cloudmade.com' target='_blank'>Cloudmade</a>";

        
var myMap = new L.TileLayer(mapquestUrl, {maxZoom: 18,zIndex:99, attribution: mapquestAttribution, subdomains: ['1','2','3','4']});

//var myMap = new L.tileLayer(mapTileLayerURLCloudmade, { maxZoom: 18, minZoom: 5, attribution: strCloudmadeAtribution });


map = new L.Map('map', {
        center: new L.LatLng(-43.955611, -176.557035),
        zoom: 15,
        layers: [  myMap ],
        zoomControl: true
});