Skip to content

Instantly share code, notes, and snippets.

@flippyhead
Last active December 20, 2015 23:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save flippyhead/f34ae600ef8fbf8d654e to your computer and use it in GitHub Desktop.
Save flippyhead/f34ae600ef8fbf8d654e to your computer and use it in GitHub Desktop.
<!DOCTYPE html>
<html>
<head>
<link rel="stylesheet" href="http://cdn.leafletjs.com/leaflet-0.6.4/leaflet.css" />
<!--[if lte IE 8]>
<link rel="stylesheet" href="http://cdn.leafletjs.com/leaflet-0.6.4/leaflet.ie.css" />
<![endif]-->
<script src="http://cdn.leafletjs.com/leaflet-0.6.4/leaflet.js"></script>
</head>
<body>
<div id="map" style="height: 180px;"></div>
<script>
var northEast, southWest, t;
map = L.map('map', {
maxZoom: 20,
minZoom: 20,
crs: L.CRS.Simple
}).setView([0, 0], 20);
southWest = map.unproject([0, 3190], map.getMaxZoom());
northEast = map.unproject([3902, 0], map.getMaxZoom());
map.setMaxBounds(new L.LatLngBounds(southWest, northEast));
t = "http://pathable2-development.s3.amazonaws.com/floor_maps/143/tiles/{z}/{x}/{y}.png";
L.tileLayer(t).addTo(map);
</script>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment