-
Notifications
You must be signed in to change notification settings - Fork 1
/
tutorial_leaflet_6.html
33 lines (23 loc) · 1.32 KB
/
tutorial_leaflet_6.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
<html>
<head>
<title>Mi primer mapa en Leaflet</title>
<link rel="stylesheet" href="http://cdn.leafletjs.com/leaflet-0.7.3/leaflet.css" />
<script src="http://cdn.leafletjs.com/leaflet-0.7.3/leaflet.js"></script>
<script src="scripts/leaflet.label.js"></script>
<style>
#map { height: 100%; width: 100%; }
</style>
</head>
<body>
<div id="map"></div>
<script>
var map = L.map('map').setView([40.111054, -3.679537], 6 );
var OpenStreetMap_BlackAndWhite = L.tileLayer('http://{s}.tiles.wmflabs.org/bw-mapnik/{z}/{x}/{y}.png', {
minZoom: 6,
attribution: '© <a href="http://www.openstreetmap.org/copyright">OpenStreetMap</a>'
}).addTo(map);
var marker = L.marker([41.435620, 2.236003]).addTo(map);
marker.bindPopup("Éste es mi primer <a href=http://leafletjs.com/reference.html#marker target=_blank>marcador</a><br><br><iframe width=300 height=150 src=https://www.youtube.com/embed/W4p3M4Vuy_E frameborder=0 allowfullscreen> </iframe><br><br> Don't stop me know").openPopup();
</script>
</body>
</html>