xxxxxxxxxx
<head>
<meta charset="utf-8">
<meta http-equiv="x-ua-compatible" content="ie=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<style>
#map {
position: absolute;
top: 0;
bottom: 0;
left: 0;
right: 0;
}
body {
margin: 0;
}
html {
font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}
</style>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/leaflet/0.7.3/leaflet.css" />
<script src="https://cdnjs.cloudflare.com/ajax/libs/leaflet/0.7.3/leaflet.js"></script>
<script type="text/javascript" src="https://maps.stamen.com/js/tile.stamen.js?v1.3.0"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/d3/3.5.6/d3.min.js"></script>
</head>
<body>
<div id="map"></div>
<script>
var zoom = 15;
var map = L.map('map', {
center: new L.LatLng(35.467560, -97.516428),
zoom: zoom,
minZoom: zoom - 4,
maxZoom: zoom + 2
});
var layer = new L.StamenTileLayer("toner");
map.addLayer(layer);
d3.csv('yelp.csv', function(data){
data.forEach(function(d){
var circle = L.marker( [ d['location-lat'], d['location-long'] ] ).bindPopup(d['name']).addTo(map);
})
})
</script>
</body>
</html>
Modified http://cdnjs.cloudflare.com/ajax/libs/leaflet/0.7.3/leaflet.js to a secure url
Modified http://maps.stamen.com/js/tile.stamen.js?v1.3.0 to a secure url
https://cdnjs.cloudflare.com/ajax/libs/leaflet/0.7.3/leaflet.js
https://maps.stamen.com/js/tile.stamen.js?v1.3.0
https://cdnjs.cloudflare.com/ajax/libs/d3/3.5.6/d3.min.js