Skip to content

Instantly share code, notes, and snippets.

@aaizemberg
Last active August 29, 2015 13:56
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 aaizemberg/9236197 to your computer and use it in GitHub Desktop.
Save aaizemberg/9236197 to your computer and use it in GitHub Desktop.
CAWS (leafletjs con maptiles de OSM)
<!DOCTYPE html>
<html>
<head>
<title>Club Argentino de WUSHU</title>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="http://leafletjs.com/dist/leaflet.css" />
</head>
<body>
<div id="map" style="width: 100%; height: 600px"></div>
<script src="http://leafletjs.com/dist/leaflet.js"></script>
<script>
var map = L.map('map').setView([-34.6051541, -58.4280189], 16);
L.tileLayer('http://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png', {
maxZoom: 18,
attribution: '&copy; <a href="http://openstreetmap.org">OpenStreetMap</a> contributors, <a href="http://creativecommons.org/licenses/by-sa/2.0/">CC-BY-SA</a>'
}).addTo(map);
L.marker([-34.6051541, -58.4280189]).addTo(map).bindPopup("<b>CAWS</b><br>Club Argentino de Wushu<br><br><a href='http://www.caws.com.ar/' target='_blank'>http://www.caws.com.ar/</a>");
var popup = L.popup();
</script>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment