Skip to content

Instantly share code, notes, and snippets.

@NPashaP
Last active January 21, 2018 19:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save NPashaP/9881147d5d11abc2333222bf7fbb784b to your computer and use it in GitHub Desktop.
Save NPashaP/9881147d5d11abc2333222bf7fbb784b to your computer and use it in GitHub Desktop.
Leaflet - default
license: gpl-3.0
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="https://unpkg.com/leaflet@1.0.3/dist/leaflet.css"/>
<script src="https://unpkg.com/leaflet@1.0.3/dist/leaflet.js"></script>
<style>
*{
margin:0;
}
#map {
width: 100vw;
height: 100vh;
}
</style>
</head>
<body>
<div id='map'></div>
<script src="http://vizjs.org/viz.v1.3.0.min.js"></script>
<script>
var map = L.map('map'
,{ center: [37.1, -95.7]
,zoom: 5 }
);
L.tileLayer(viz.leaflet.tiles.Esri.NatGeoWorldMap, {
attribution: viz.leaflet.tiles.Esri.attribution
}).addTo(map);
</script>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment