Skip to content

Instantly share code, notes, and snippets.

@feomike
Last active December 26, 2015 09:29
Show Gist options
  • Select an option

  • Save feomike/7129604 to your computer and use it in GitHub Desktop.

Select an option

Save feomike/7129604 to your computer and use it in GitHub Desktop.
example map 1

this is example map 1

<!DOCTYPE html>
<html>
<head>
<meta name='viewport' content='width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no' />
<script src='//api.tiles.mapbox.com/mapbox.js/v1.3.1/mapbox.js'></script>
<link href='//api.tiles.mapbox.com/mapbox.js/v1.3.1/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 type='text/javascript'>
var map = L.map('map').setView([40, -94.5], 4);
L.control.layers({
'Lite': L.mapbox.tileLayer('fcc.map-kzt95hy6').addTo(map),
'Graphite': L.mapbox.tileLayer('fcc.map-toolde8w')},
{
'All': L.mapbox.tileLayer('fcc.it7hw7b9').addTo(map),
'Map 1': L.mapbox.tileLayer('fcc.mmba_ds_att'),
'Map 2': L.mapbox.tileLayer('fcc.mmba_ds_sprint'),
'Map 3': L.mapbox.tileLayer('fcc.mmba_ds_tmobile'),
'Map 4': L.mapbox.tileLayer('fcc.mmba_ds_vz'),
}).addTo(map);
</script>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment