xxxxxxxxxx
<html>
<head>
<script src='https://api.tiles.mapbox.com/mapbox.js/v0.6.7/mapbox.js'></script>
<link href='https://api.tiles.mapbox.com/mapbox.js/v0.6.7/mapbox.css' rel='stylesheet' />
<style>
body { margin:0; padding:0; }
#map { position:absolute; top:0; bottom:0; width:100%; }
</style>
</head>
<body>
<div id='map'></div>
<script>
var map = mapbox.map('map');
map.addLayer(mapbox.layer().id('examples.map-4l7djmvo'));
// Create a markers layer with features from a CSV string.
// If you have a remote CSV file (on the same server, though,
// due to the same origin policy
// https://en.wikipedia.org/wiki/Same_origin_policy
// Then you can use jQuery.ajax or reqwest to do an AJAX request
// for its content.
var markerLayer = mapbox.markers.layer();
reqwest({ url: 'points.csv', type: 'text', success: function (resp) {
markerLayer.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);
map.addLayer(markerLayer);
map.zoom(6).center({ lat: 13.119605, lon: -86.16851 });
// Attribute map
map.ui.attribution.add()
.content('<a href="https://mapbox.com/about/maps">Terms & Feedback</a>');
</script>
</body>
</html>
Modified http://api.tiles.mapbox.com/mapbox.js/v0.6.7/mapbox.js to a secure url
https://api.tiles.mapbox.com/mapbox.js/v0.6.7/mapbox.js