Sha256: 04bd215a583636c8bba6188adda0df6859d75f4cfff7b8db817b93006349c351

Contents?: true

Size: 1.67 KB

Versions: 6

Compression:

Stored size: 1.67 KB

Contents

<!DOCTYPE html>
<html>
<head>
	<title>Leaflet debug page</title>

	<link rel="stylesheet" href="../../dist/leaflet.css" />

	<link rel="stylesheet" href="../css/screen.css" />

	<script type="text/javascript" src="../../build/deps.js"></script>
	<script src="../leaflet-include.js"></script>
</head>
<body>

	<div id="map"></div>

	<script type="text/javascript">

		function getCloudMadeUrl(styleId) {
			return 'http://{s}.tile.cloudmade.com/d4fc77ea4a63471cab2423e66626cbb6/' + styleId + '/256/{z}/{x}/{y}.png';
		}

		var cloudmadeAttribution = 'Map data &copy; 2011 OpenStreetMap contributors, Imagery &copy; 2011 CloudMade',
			cloudmade = new L.TileLayer(getCloudMadeUrl(997), {attribution: cloudmadeAttribution}),
			cloudmade2 = new L.TileLayer(getCloudMadeUrl(998), {attribution: 'Hello world'});

		var map = new L.Map('map').addLayer(cloudmade).setView(new L.LatLng(50.5, 30.512), 15);

		var marker = new L.Marker(new L.LatLng(50.5, 30.505), {color: 'red'});
		map.addLayer(marker);
		marker.bindPopup("Leaflet is designed with simplicity, performance and usability in mind. It works efficiently across all major desktop and mobile platforms out of the box, taking advantage of HTML5 and CSS3 on modern browsers while still being accessible on older ones.").openPopup();

		var marker2 = new L.Marker(new L.LatLng(50.502, 30.515));
		map.addLayer(marker2);

		var layersControl = new L.Control.Layers({
			'CloudMade Fresh': cloudmade,
			'CloudMade Pale Dawn': cloudmade2
		}, {
			'Some marker': marker,
			'Another marker': marker2
		});

		map.addControl(layersControl);
		map.addControl(new L.Control.Scale());

	</script>
</body>
</html>

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
leaflet-js-0.8.dev2 lib/leaflet/debug/map/controls.html
leaflet-js-0.7.0.4 lib/leaflet/debug/map/controls.html
leaflet-js-0.7.0.3 lib/leaflet/debug/map/controls.html
leaflet-js-0.7.0.2 lib/leaflet/debug/map/controls.html
leaflet-js-0.7.0.1 lib/leaflet/debug/map/controls.html
leaflet-js-0.7.0 lib/leaflet/debug/map/controls.html