Skip to content

Instantly share code, notes, and snippets.

@smit1678
Created November 3, 2015 21:52
Show Gist options
  • Save smit1678/92e42b26bc76f29ef586 to your computer and use it in GitHub Desktop.
Save smit1678/92e42b26bc76f29ef586 to your computer and use it in GitHub Desktop.
<!DOCTYPE html>
<html>
<head>
<meta charset=utf-8 />
<title>External map layers</title>
<meta name='viewport' content='initial-scale=1,maximum-scale=1,user-scalable=no' />
<script src='https://api.mapbox.com/mapbox.js/v2.2.3/mapbox.js'></script>
<link href='https://api.mapbox.com/mapbox.js/v2.2.3/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>
L.mapbox.accessToken = '<your access token here>';
var map = L.mapbox.map('map');
var extLayer = L.tileLayer('http://oam-tiles.s3.amazonaws.com/056f38e6-35d2-4c5f-9f3d-a1a3a31f6209/{z}/{x}/{y}.png', {
attribution: ''
}).addTo(map);
map.setView([51.5020, -0.1239], 3);
</script>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment