Skip to content

Instantly share code, notes, and snippets.

@milkbread
Last active December 24, 2015 00:09
Show Gist options
  • Save milkbread/6714663 to your computer and use it in GitHub Desktop.
Save milkbread/6714663 to your computer and use it in GitHub Desktop.
HTML: simple old looking map

For another project, I needed an old looking map. So I made it very simple in TileMill and uploaded it to MapBox

<!DOCTYPE html>
<html>
<head>
<title>Testmap</title>
<meta charset="utf-8" />
<script src="http://cdn.leafletjs.com/leaflet-0.6.1/leaflet.js"></script>
<script src="http://d3js.org/d3.v3.min.js"></script>
<style>
@import url(http://cdn.leafletjs.com/leaflet-0.6.1/leaflet.css);
html, body, #map {
height:100%;
width:100%;
padding:0px;
margin:0px;
}
</style>
</head>
<body>
<div id="map"></div>
<script>
var map = L.map('map').setView([52.45,13.4], 3);
var old = L.tileLayer('http://{s}.tiles.mapbox.com/v3/hoto.simple_old_map/{z}/{x}/{y}.png', {maxZoom:4}).addTo(map);
</script>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment