Skip to content

Instantly share code, notes, and snippets.

@wboykinm
Last active December 4, 2020 09:02
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 wboykinm/5af5138a68f8fd60f179f35bb00dd42a to your computer and use it in GitHub Desktop.
Save wboykinm/5af5138a68f8fd60f179f35bb00dd42a to your computer and use it in GitHub Desktop.
BTV 1894 tiles: Sanborn-Perris Map Co. Burlington Vermont (Chittenden County) Nov. 1894. New York: Sanborn-Perris Map Co., Ltd., 1894. Courtesy of Special Collections, University of Vermont.
<!DOCTYPE html>
<html>
<head>
<meta charset=utf-8 />
<title>External map layers</title>
<meta name='viewport' content='initial-scale=1,maximum-scale=1,user-scalable=no' />
<script src='https://api.mapbox.com/mapbox.js/v3.1.1/mapbox.js'></script>
<script src='https://api.mapbox.com/mapbox.js/plugins/leaflet-hash/v0.2.1/leaflet-hash.js'></script>
<link href='https://api.mapbox.com/mapbox.js/v3.1.1/mapbox.css' rel='stylesheet' />
<style>
body { margin:0; padding:0; }
#map { position:absolute; top:0; bottom:0; width:100%; }
</style>
</head>
<body>
<div id='map'></div>
<script>
L.mapbox.accessToken = 'pk.eyJ1IjoibGFuZHBsYW5uZXIiLCJhIjoicUtlZGgwYyJ9.UFYz8MD4lI4kIzk9bjGFvg';
var map = L.mapbox.map('map');
var stamenLayer = L.tileLayer('https://s3.amazonaws.com/geosprocket/tiles/btv1894-5/{z}/{x}/{y}.png', {
attribution: 'Map tiles by <a href="http://geosprocket.io">Geosprocket</a>, using 1894 Sanborn Mapping Co. source images'
}).addTo(map);
map.setView([44.476834, -73.214109], 18);
var hash = L.hash(map);
</script>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment