Skip to content

Instantly share code, notes, and snippets.

@powersa
Created October 23, 2014 03:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save powersa/5d7900a89af81149d4ee to your computer and use it in GitHub Desktop.
Save powersa/5d7900a89af81149d4ee to your computer and use it in GitHub Desktop.
MaptimeSEA, Meeting 1, Example 2
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>MaptimeSEA Slippy Map</title>
<link rel="stylesheet" href="http://cdn.leafletjs.com/leaflet-0.7.3/leaflet.css" />
<style>
#mapContainer { height: 380px; width: 50%; }
</style>
</head>
<body>
<div id="mapContainer">
</div>
<script src="http://cdn.leafletjs.com/leaflet-0.7.3/leaflet.js"></script>
<script type="text/javascript">
//initialize the map
var map = L.map('mapContainer').setView([47.65, -122.4], 11);
//Add a basemap
L.tileLayer('http://{s}.tiles.mapbox.com/v3/spatialdev.map-c9z2cyef/{z}/{x}/{y}.png').addTo(map);
</script>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment