Created
August 31, 2015 13:59
-
-
Save anonymous/7533969a438316ed2716 to your computer and use it in GitHub Desktop.
Leaflet JS Bin // source http://leaflet-playground.herokuapp.com/tol
This file contains hidden or 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> | |
<link href="http://cdn.leafletjs.com/leaflet-1.0.0-b1/leaflet.css" rel="stylesheet" type="text/css" /> | |
<script src="http://cdn.leafletjs.com/leaflet-1.0.0-b1/leaflet.js"></script> | |
<meta charset="utf-8"> | |
<title>Leaflet JS Bin</title> | |
<style> | |
#map { | |
width:600px; | |
height:400px; | |
} | |
</style> | |
</head> | |
<body> | |
<div id='map'></div> | |
<script> | |
// Remember to include either the Leaflet 0.7.3 or the Leaflet 1.0.0-beta1 library | |
var myCenter = new L.LatLng(50.5, 30.51); | |
var map = new L.Map('map', {center: myCenter, zoom: 15}); | |
var positron = L.tileLayer('http://{s}.basemaps.cartocdn.com/light_all/{z}/{x}/{y}.png', { | |
attribution: '© <a href="http://www.openstreetmap.org/copyright">OpenStreetMap</a> contributors, © <a href="http://cartodb.com/attributions">CartoDB</a>' | |
}).addTo(map); | |
var marker = new L.Marker(myCenter); | |
map.addLayer(marker); | |
marker.bindPopup("<p>Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Donec odio. Quisque volutpat mattis eros. Nullam malesuada erat ut turpis. Suspendisse urna nibh, viverra non, semper suscipit, posuere a, pede.</p><p>Donec nec justo eget felis facilisis fermentum. Aliquam porttitor mauris sit amet orci. Aenean dignissim pellentesque felis.</p>"); | |
</script> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment