[Pkg-javascript-commits] [leaflet-markercluster] 86/219: Create showCoverageOnHover-vertically-aligned-markers.html

Jonas Smedegaard dr at jones.dk
Sat May 7 09:39:14 UTC 2016


This is an automated email from the git hooks/post-receive script.

js pushed a commit to branch master
in repository leaflet-markercluster.

commit 368076a145e837b1c8ae0daf395ddc05b5c5249c
Author: olive380 <olive380 at users.noreply.github.com>
Date:   Thu Aug 6 14:36:14 2015 +0200

    Create showCoverageOnHover-vertically-aligned-markers.html
    
    unit test
---
 ...CoverageOnHover-vertically-aligned-markers.html | 41 ++++++++++++++++++++++
 1 file changed, 41 insertions(+)

diff --git a/example/showCoverageOnHover-vertically-aligned-markers.html b/example/showCoverageOnHover-vertically-aligned-markers.html
new file mode 100644
index 0000000..e32f4e3
--- /dev/null
+++ b/example/showCoverageOnHover-vertically-aligned-markers.html
@@ -0,0 +1,41 @@
+<html>
+<head>
+	<title>Leaflet debug page</title>
+
+	<link rel="stylesheet" href="http://cdn.leafletjs.com/leaflet-0.7/leaflet.css" />
+	<script src="http://cdn.leafletjs.com/leaflet-0.7/leaflet-src.js"></script>
+	<meta name="viewport" content="width=device-width, initial-scale=1.0">
+	<link rel="stylesheet" href="screen.css" />
+
+	<link rel="stylesheet" href="../dist/MarkerCluster.css" />
+	<link rel="stylesheet" href="../dist/MarkerCluster.Default.css" />
+	<script src="../dist/leaflet.markercluster-src.js"></script>
+</head>
+<body>
+
+	<div id="map"></div>
+	<script type="text/javascript">
+
+		var tiles = L.tileLayer('http://{s}.tile.osm.org/{z}/{x}/{y}.png', {
+				maxZoom: 18,
+				attribution: '© <a href="http://osm.org/copyright">OpenStreetMap</a> contributors'
+			}),
+			latlng = new L.LatLng(50.5, 30.51);
+
+		var map = new L.Map('map', {center: latlng, zoom: 15, layers: [tiles]});
+
+		var markers = new L.MarkerClusterGroup();
+		var m;
+
+		m = new L.Marker([50.5, 30.51]);
+		markers.addLayer(m);
+		m = new L.Marker([50.501, 30.51]);
+		markers.addLayer(m);
+                m = new L.Marker([50.502, 30.51]);
+		markers.addLayer(m);
+
+		map.addLayer(markers);
+		
+	</script>
+</body>
+</html>

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/leaflet-markercluster.git



More information about the Pkg-javascript-commits mailing list