Skip to content

Instantly share code, notes, and snippets.

@tyrasd
Last active December 26, 2015 13:09
Show Gist options
  • Save tyrasd/7155976 to your computer and use it in GitHub Desktop.
Save tyrasd/7155976 to your computer and use it in GitHub Desktop.
slippy map for basemap.at tiles
<!DOCTYPE html>
<html>
<head>
<title>basemap.at</title>
<link rel="stylesheet" href="http://cdn.leafletjs.com/leaflet-0.6.2/leaflet.css" />
<!--[if lte IE 8]><link rel="stylesheet" href="http://cdn.leafletjs.com/leaflet-0.6.2/leaflet.ie.css" /><![endif]-->
<script src="http://cdn.leafletjs.com/leaflet-0.6.2/leaflet-src.js"></script>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
</head>
<body>
<div id="map" style="width:100%;height:700px;"></div>
<script type="text/javascript">
var layerUrl = 'http://maps{s}.wien.gv.at/basemap/geolandbasemap/normal/google3857/{z}/{y}/{x}.jpeg',
attribution = '&copy; basemap.at CC-BY 3.0 AT',
layer = L.tileLayer(layerUrl, {maxZoom: 18, attribution: attribution, subdomains:'1234'}),
latlng = L.latLng(47.7, 14);
var map = L.map('map', {center: latlng, zoom: 8, layers: [layer]});
</script>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment