I have a basic map created by mapbox with the code below and want input markercluster function, anybody can complete the code for me.Thanks a ton!
<!DOCTYPE html>
<html>
<head>
<meta charset=utf-8 />
<title></title>
<script src='http://api.tiles.mapbox.com/mapbox.js/v1.6.2/mapbox.js'></script>
<link href='http://api.tiles.mapbox.com/mapbox.js/v1.6.2/mapbox.css' rel='stylesheet' />
<!--[if lte IE 8]>
<link href='//api.tiles.mapbox.com/mapbox.js/v1.6.2/mapbox.ie.css' rel='stylesheet'>
<![endif]-->
<style>
body { margin:0; padding:0; }
#map { position:absolute; top:0; bottom:0; width:100%; }
</style>
</head>
<body>
<div id='map'></div>
<script type='text/javascript'>
var map = L.mapbox.map('map', 'zjmu916.map-47p7qt6u');
var featureLayer = L.mapbox.featureLayer('zjmu916.map-47p7qt6u',{
sanitizer: function(x) {
return x; }
}).addTo(map);
</script>
</body>
</html>
asked 09 Apr '14, 19:30

zjmu916
1●5●5●5
accept rate: 0%
edited 10 Apr '14, 07:21

scai ♦
33.3k●21●309●459
This portal is focused on OSM only. You might want to repost your question over at gis.stackoverflow.com as more devs lurk there. But before you do so, you might want to give it a try on your own: https://www.mapbox.com/mapbox.js/example/v1.0.0/leaflet-markercluster/ and then post where you fail.