Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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