Sha256: f2e0399c73dfcf597a2595594eb6281c7da1d042a53cabfc527ef8e04303d139
Contents?: true
Size: 1.83 KB
Versions: 3
Compression:
Stored size: 1.83 KB
Contents
<!DOCTYPE html> <html> <head> <title>Leaflet debug page</title> <link rel="stylesheet" href="../../dist/leaflet.css" /> <!--[if lte IE 8]><link rel="stylesheet" href="../../dist/leaflet.ie.css" /><![endif]--> <link rel="stylesheet" href="../css/screen.css" /> <script src="../leaflet-include.js"></script> </head> <body> <div id="map" style="width: 600px; height: 600px; border: 1px solid #ccc"></div> <button id="populate">Populate with 10 markers</button> <script type="text/javascript"> var cloudmadeUrl = 'http://{s}.tile.cloudmade.com/BC9A493B41014CAABB98F0471D759707/997/256/{z}/{x}/{y}.png', cloudmadeAttribution = 'Map data © 2011 OpenStreetMap contributors, Imagery © 2011 CloudMade', cloudmade = new L.TileLayer(cloudmadeUrl, {maxZoom: 18, attribution: cloudmadeAttribution}), latlng = new L.LatLng(50.5, 30.51); var map = new L.Map('map', {center: latlng, zoom: 15, layers: [cloudmade]}); var markers = new L.FeatureGroup(); function populate() { for (var i = 0; i < 10; i++) { markers.addLayer(new L.Marker(getRandomLatLng(map))); } return false; } markers.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.</p>"); map.addLayer(markers); populate(); L.DomUtil.get('populate').onclick = populate; // function logEvent(e) { console.log(e.type); } // // map.on('movestart', logEvent); // map.on('move', logEvent); // map.on('moveend', logEvent); // // map.on('zoomstart', logEvent); // map.on('zoomend', logEvent); </script> </body> </html>
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
leaflet-ruby-0.3.beta4 | lib/leaflet/debug/map/map.html |
leaflet-ruby-0.3.beta3 | lib/leaflet/debug/map/map.html |
leaflet-ruby-0.3.beta1 | lib/leaflet/debug/map/map.html |