Skip to content

Instantly share code, notes, and snippets.

@tyrasd tyrasd/index.html
Last active Aug 29, 2015

Embed
What would you like to do?
2014 Sochi Olympics ski venues in the Krasnaya Polyana mountain cluster
<!DOCTYPE html>
<html>
<head>
<title>2014 Sochi Olympics ski venues in the Krasnaya Polyana mountain cluster</title>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<!--leaflet-->
<link rel="stylesheet" href="http://cdn.leafletjs.com/leaflet-0.7.2/leaflet.css" />
<script src="http://cdn.leafletjs.com/leaflet-0.7.2/leaflet.js"></script>
</head>
<body>
<div id="map" style="position:absolute; top:0;left:0;bottom:0;right:0;"></div>
<script>
var map = L.map('map', {maxZoom: 15}).setView([43.663,40.278], 13);
map.attributionControl.addAttribution('data &copy; <a href="http://www.openstreetmap.org/copyright">OpenStreetMap</a> contributors');
L.tileLayer('http://tile.opentopomap.org/{z}/{x}/{y}.png', {
attribution: 'basemap &copy; <a href="https://opentopomap.org/">www.opentopomap.org</a> <a href="https://creativecommons.org/licenses/by-sa/3.0/">CC-BY-SA 3.0</a>'
}).setOpacity(0.7).addTo(map);
L.tileLayer('http://tiles.opensnowmap.org/tiles-pistes/{z}/{x}/{y}.png', {
attribution: 'pistes &copy; <a href="http://www.opensnowmap.org/iframes/data.html">www.opensnowmap.org</a> CC-BY-SA'
}).addTo(map);
</script>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.