Sha256: 1d5749c9835bc1b16eea3f1fff0aeb5065204fd449fe7f8f2bc5ae257431f4a3
Contents?: true
Size: 1.07 KB
Versions: 6
Compression:
Stored size: 1.07 KB
Contents
<!DOCTYPE html> <html> <head> <title>Leaflet debug page</title> <meta name="viewport" content="initial-scale=1.0, user-scalable=no" /> <link rel="stylesheet" href="../../dist/leaflet.css" /> <link rel="stylesheet" href="../css/mobile.css" /> <script type="text/javascript" src="../../build/deps.js"></script> <script src="../leaflet-include.js"></script> </head> <body> <div id="map"></div> <script src="route.js"></script> <script> var cloudmadeUrl = 'http://{s}.tile.cloudmade.com/d4fc77ea4a63471cab2423e66626cbb6/997/256/{z}/{x}/{y}.png', cloudmade = new L.TileLayer(cloudmadeUrl, {maxZoom: 18}); for (var i = 0, latlngs = [], len = route.length; i < len; i++) { latlngs.push(new L.LatLng(route[i][0], route[i][1])); } var path = new L.Polyline(latlngs, {smoothFactor: 1}); var map = new L.Map('map', {layers: [cloudmade]}); map.fitBounds(new L.LatLngBounds(latlngs)); map.addLayer(new L.Marker(latlngs[0])); map.addLayer(new L.Marker(latlngs[latlngs.length - 1])); map.addLayer(path); </script> </body> </html>
Version data entries
6 entries across 6 versions & 1 rubygems