Skip to content

Instantly share code, notes, and snippets.

@mappingvermont
Created April 21, 2017 19:19
Show Gist options
  • Save mappingvermont/b5dfe724cef5c5c3cb8f8c2f4ebbe986 to your computer and use it in GitHub Desktop.
Save mappingvermont/b5dfe724cef5c5c3cb8f8c2f4ebbe986 to your computer and use it in GitHub Desktop.
cambridgeport 1869 beers map
<!DOCTYPE html>
<html>
<head>
<title>Demo Cambridgeport Map</title>
<meta charset="utf-8" />
<link
rel="stylesheet"
href="http://cdn.leafletjs.com/leaflet-0.7/leaflet.css"
/>
<style>
body {
padding: 0;
margin: 0;
}
html, body, #map {
height: 100%;
width: 100%;
}
</style>
</head>
<body>
<div id="map"></div>
<script
src="http://cdn.leafletjs.com/leaflet-0.7/leaflet.js">
</script>
<script>
var map = L.map('map').setView([43.151379588550036, -72.55956888198853], 16);
mapLink =
'<a href="http://openstreetmap.org">OpenStreetMap</a>';
L.tileLayer('http://server.arcgisonline.com/ArcGIS/rest/services/World_Imagery/MapServer/tile/{z}/{y}/{x}', {
attribution: 'Tiles &copy; Esri &mdash; Source: Esri, i-cubed, USDA, USGS, AEX, GeoEye, Getmapping, Aerogrid, IGN, IGP, UPR-EGP, and the GIS User Community'
}).addTo(map);
L.tileLayer(
'http://mapping-vt-tiles.s3.amazonaws.com/cambridgeport-1869/{z}/{x}/{y}.png', {
attribution: '&copy; ' + mapLink + ' Contributors',
maxZoom: 20,
opacity: 0.8,
}).addTo(map);
</script>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment