Skip to content

Instantly share code, notes, and snippets.

@lxbarth
Created March 12, 2014 20:22
Show Gist options
  • Save lxbarth/9515488 to your computer and use it in GitHub Desktop.
Save lxbarth/9515488 to your computer and use it in GitHub Desktop.
Mapbox Satellite ZL0-12
<!DOCTYPE html>
<html>
<head>
<meta charset=utf-8 />
<title>A Simple Map</title>
<meta name='viewport' content='width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no' />
<script src='http://api.tiles.mapbox.com/mapbox.js/v1.6.2/mapbox.js'></script>
<script src='http://api.tiles.mapbox.com/mapbox.js/plugins/leaflet-hash/v0.2.1/leaflet-hash.js'></script>
<link href='http://api.tiles.mapbox.com/mapbox.js/v1.6.2/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 = L.mapbox.map('map', 'lxbarth.map-n8gsdqn4', {maxZoom: 12})
.setView([27.68, -27.77], 3);
L.hash(map);
</script>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment