Skip to content

Instantly share code, notes, and snippets.

@Cartophile
Last active September 10, 2017 23:09
Show Gist options
  • Save Cartophile/348d90f97c327222e7081b047cbae8ce to your computer and use it in GitHub Desktop.
Save Cartophile/348d90f97c327222e7081b047cbae8ce to your computer and use it in GitHub Desktop.
Leaflet starter MM2
license: mit
<!DOCTYPE html>
<head>
<meta charset="utf-8">
<link rel="stylesheet" href="http://cdn.leafletjs.com/leaflet/v0.7.7/leaflet.css" />
<script src="http://cdn.leafletjs.com/leaflet/v0.7.7/leaflet.js"></script>
<style>
body { margin:0;position:fixed;top:0;right:0;bottom:0;left:0; }
#mapdiv {
height: 100%;
}
</style>
</head>
<body>
<div id="mapdiv"></div>
<script>
var mapvar = L.map('mapdiv').setView([48.8566, 2.3522], 15);
L.tileLayer('http://{s}.tile.stamen.com/terrain/{z}/{x}/{y}.png',
{
attribution: '&copy; <a href="http://osm.org/copyright">OpenStreetMap</a> contributors'
}).addTo(mapvar);
</script>
</body>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment