Skip to content

Instantly share code, notes, and snippets.

@clhenrick
Last active June 14, 2017 21:49
Show Gist options
  • Save clhenrick/3c55829dde88065e72b89a066107eb9e to your computer and use it in GitHub Desktop.
Save clhenrick/3c55829dde88065e72b89a066107eb9e to your computer and use it in GitHub Desktop.
Leaflet with Stamen Terrain Positron
license: mit
<!DOCTYPE html>
<head>
<meta charset="utf-8">
<link rel="stylesheet" href="https://unpkg.com/leaflet@1.0.3/dist/leaflet.css"
integrity="sha512-07I2e+7D8p6he1SIM+1twR5TIrhUQn9+I6yjqD53JQjFiMf8EtC93ty0/5vJTZGF8aAocvHYNEDJajGdNx1IsQ=="
crossorigin=""/>
<style>
body { margin:0;position:fixed;top:0;right:0;bottom:0;left:0; }
#map { height: 100%; width: 100%; }
</style>
</head>
<body>
<div id="map"></div>
<script src="https://unpkg.com/leaflet@1.0.3/dist/leaflet.js"
integrity="sha512-A7vV8IFfih/D732iSSKi20u/ooOfj/AGehOKq0f4vLT1Zr2Y+RX7C+w8A1gaSasGtRUZpF/NZgzSAu4/Gc41Lg=="
crossorigin=""></script>
<script>
var map = L.map('map').setView([0,0], 3);
L.tileLayer('http://hillshades.openterrain.org.s3-website-us-east-1.amazonaws.com/positron/{z}/{x}/{y}.png').addTo(map);
</script>
</body>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment