Skip to content

Instantly share code, notes, and snippets.

@aaizemberg
Created October 11, 2016 20:46
Show Gist options
  • Save aaizemberg/f19605f433057266035181693d9003ed to your computer and use it in GitHub Desktop.
Save aaizemberg/f19605f433057266035181693d9003ed to your computer and use it in GitHub Desktop.
mapa del AMBA (usando los tiles de la USIG)
<!DOCTYPE html>
<html>
<head>
<title>Leaflet con los Tiles de la USIG</title>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="//unpkg.com/leaflet@1.0.1/dist/leaflet.css" />
<script src="//unpkg.com/leaflet@1.0.1/dist/leaflet.js"></script>
<style>
body {
padding: 0;
margin: 0;
}
html, body, #map {
height: 100vh;
width: 100vw;
}
</style>
</head>
<body>
<div id="map"></div>
<script>
var mymap = L.map('map').setView([-34.604916,-58.3900979], 11);
var url = '//tiles1.usig.buenosaires.gob.ar/mapcache/tms/1.0.0/amba_con_transporte_3857@GoogleMapsCompatible/{z}/{x}/{y}.png';
var tms_usig = L.tileLayer(url, { attribution: '<a href="//mapa.buenosaires.gob.ar/">USIG</a> (GCBA)', tms: true }).addTo(mymap);
</script>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment