Skip to content

Instantly share code, notes, and snippets.

@wboykinm
Last active November 6, 2017 01:41
Show Gist options
  • Save wboykinm/67a9da1fbe4335c3d6901e28c6c0d6da to your computer and use it in GitHub Desktop.
Save wboykinm/67a9da1fbe4335c3d6901e28c6c0d6da to your computer and use it in GitHub Desktop.
Redlines: Philadelphia 1937
license: mit
<!DOCTYPE html>
<html>
<head>
<meta charset=utf-8 />
<title>Philly redlines</title>
<meta name='viewport' content='initial-scale=1,maximum-scale=1,user-scalable=no' />
<link rel="stylesheet" href="https://unpkg.com/leaflet@1.2.0/dist/leaflet.css"
integrity="sha512-M2wvCLH6DSRazYeZRIm1JnYyh22purTM+FDB5CsyxtQJYeKq83arPe5wgbNmcFXGqiSH2XR8dT/fJISVA1r/zQ=="
crossorigin=""/>
<script src="https://unpkg.com/leaflet@1.2.0/dist/leaflet.js"
integrity="sha512-lInM/apFSqyy1o6s89K4iQUKg6ppXEgsVxT35HbzUupEVRh2Eu9Wdl4tHj7dZO0s1uvplcYGmt3498TtHq+log=="
crossorigin=""></script>
<style>
body { margin:0; padding:0; }
#map { position:absolute; top:0; bottom:0; width:100%; }
</style>
</head>
<body>
<div id='map'></div>
<script>
var map = L.map('map')
.setView([39.971202,-75.240990], 13);
var stamenTiles =
// L.tileLayer('http://{s}.tile.osm.org/{z}/{x}/{y}.png', {
L.tileLayer('https://s3.amazonaws.com/holc/tiles_retina/PA/Philadelphia/1937/{z}/{x}/{y}.png', {
attribution: '© <a href="https://dsl.richmond.edu/panorama/redlining/#loc=14/39.9631/-75.2069&opacity=0.8&city=philadelphia-pa&sort=138">Mapping Inequality</a>'
}).addTo(map);
</script>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment