Skip to content

Instantly share code, notes, and snippets.

@elbruno
Created December 5, 2014 16:30
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 elbruno/5f600ceec0041252cbf0 to your computer and use it in GitHub Desktop.
Save elbruno/5f600ceec0041252cbf0 to your computer and use it in GitHub Desktop.
El Bruno LealLet demo
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width" />
<title>@ViewBag.Title</title>
@Styles.Render("~/Content/css")
</head>
<body>
<h2>El Bruno - LeafLet demo 01</h2>
<div id="map"></div>
@Scripts.Render("~/bundles/jquery")
@Scripts.Render("~/bundles/modernizr")
@Scripts.Render("~/bundles/bootstrap")
@Scripts.Render("~/bundles/leaflet")
<script>
// center map in Santiago Bernabeu Metro Station
var map = L.map('map').setView([40.451631, -3.690366], 18);
L.tileLayer('http://{s}.tile.osm.org/{z}/{x}/{y}.png', {
attribution: 'Parada de Metro Santiago Bernabeu'
}).addTo(map);
// add marker in the Santiago Bernabeu footbal stadium
L.marker([40.453146, -3.688344]).addTo(map)
.bindPopup('El estadio del Real Madrid<br>Pedazo de cracks.')
.openPopup();
</script>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment