Created
December 5, 2014 16:30
-
-
Save elbruno/5f600ceec0041252cbf0 to your computer and use it in GitHub Desktop.
El Bruno LealLet demo
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!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