Created
September 2, 2013 07:19
-
-
Save n0nick/6410017 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<script> | |
L_PREFER_CANVAS = true; | |
</script> | |
<script src='http://cdn.leafletjs.com/leaflet-0.5.1/leaflet.js'></script> | |
<link href='http://cdn.leafletjs.com/leaflet-0.5.1/leaflet.css' rel='stylesheet' /> | |
<!--[if lte IE 8]> | |
<link href='http://cdn.leafletjs.com/leaflet-0.5.1/leaflet.ie.css' rel='stylesheet' > | |
<![endif]--> | |
<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'> | |
//Init a map, and attempt a locate. | |
var map = L.map('map', { | |
center: [39.84, -96.591], | |
zoom: 4 | |
}) | |
L.tileLayer('http://squid.caerusgeo.com/{z}/{x}/{y}.png', { | |
attribution: '© <a href="http://osm.org/copyright">OpenStreetMap</a> contributors' | |
}).addTo(map); | |
</script> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment