xxxxxxxxxx
<html>
<head>
<meta charset=utf-8 />
<title>Example</title>
<script src='https://api.tiles.mapbox.com/mapbox.js/v0.6.3/mapbox.js'></script>
<link href='https://api.tiles.mapbox.com/mapbox.js/v0.6.3/mapbox.css' rel='stylesheet' />
<style>
body { margin:0; padding:0; }
#map {
position:absolute;
top:0;
left:0;
right:0;
bottom:0;
}
</style>
</head>
<body>
<div id='map'></div>
<script>
var m = mapbox.map('map');
m.addLayer(mapbox.layer().id('examples.map-4l7djmvo'));
// Create a markers layer with features from a CSV string.
reqwest({
url: 'markers.csv',
type: 'text',
success: function(resp) {
var markerLayer = mapbox.markers.layer().csv(resp.responseText);
// Add interaction to this marker layer. This
// binds tooltips to each marker that has title
// and description defined.
mapbox.markers.interaction(markerLayer);
m.addLayer(markerLayer);
}
});
m.zoom(6).center({ lat: 41.673, lon: 12.656 });
</script>
</body>
</html>
Modified http://api.tiles.mapbox.com/mapbox.js/v0.6.3/mapbox.js to a secure url
https://api.tiles.mapbox.com/mapbox.js/v0.6.3/mapbox.js