-
-
Save flippyhead/f34ae600ef8fbf8d654e 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> | |
<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