Skip to content

Instantly share code, notes, and snippets.

@n0nick
Created September 2, 2013 07:19
Show Gist options
  • Save n0nick/6410017 to your computer and use it in GitHub Desktop.
Save n0nick/6410017 to your computer and use it in GitHub Desktop.
<!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: '&copy; <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