[Pkg-javascript-commits] [leaflet-markercluster] 106/479: Update build

Jonas Smedegaard dr at jones.dk
Thu Oct 16 16:00:16 UTC 2014


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

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

commit fbd46fd2b8e826d4e709030090626d809ce13eff
Author: danzel <danzel at localhost.geek.nz>
Date:   Wed Jul 25 11:20:44 2012 +1200

    Update build
---
 dist/leaflet.markercluster-src.js | 8 ++++++++
 dist/leaflet.markercluster.js     | 2 +-
 2 files changed, 9 insertions(+), 1 deletion(-)

diff --git a/dist/leaflet.markercluster-src.js b/dist/leaflet.markercluster-src.js
index bfc418f..ece0550 100644
--- a/dist/leaflet.markercluster-src.js
+++ b/dist/leaflet.markercluster-src.js
@@ -24,6 +24,11 @@
 
 		bindEvents: function (map, markerClusterGroup) {
 			var me = this;
+			var inZoomAnimation = false;
+
+			map.on('zoomstart', function () { inZoomAnimation = true; });
+			map.on('zoomend', function () { inZoomAnimation = false; });
+
 
 			//Zoom on cluster click or spiderfy if we are at the lowest level
 			markerClusterGroup.on('clusterclick', function (a) {
@@ -36,6 +41,9 @@
 
 			//Show convex hull (boundary) polygon on mouse over
 			markerClusterGroup.on('clustermouseover', function (a) {
+				if (inZoomAnimation) {
+					return;
+				}
 				if (me._shownPolygon) {
 					map.removeLayer(me._shownPolygon);
 				}
diff --git a/dist/leaflet.markercluster.js b/dist/leaflet.markercluster.js
index 56f1a0f..e2a43b8 100644
--- a/dist/leaflet.markercluster.js
+++ b/dist/leaflet.markercluster.js
@@ -3,4 +3,4 @@
  Leaflet.markercluster is an open-source JavaScript library for Marker Clustering on leaflet powered maps.
  https://github.com/danzel/Leaflet.markercluster
 */
-(function(e,t){(function(){L.MarkerClusterDefault={iconCreateFunction:function(e){var t=" marker-cluster-";return e<10?t+="small":e<100?t+="medium":t+="large",new L.DivIcon({html:"<div><span>"+e+"</span></div>",className:"marker-cluster"+t,iconSize:new L.Point(40,40)})},_shownPolygon:null,bindEvents:function(e,t){var n=this;t.on("clusterclick",function(t){e.getMaxZoom()===e.getZoom()?t.layer.spiderfy():t.layer.zoomToBounds()}),t.on("clustermouseover",function(t){n._shownPolygon&&e.remove [...]
\ No newline at end of file
+(function(e,t){(function(){L.MarkerClusterDefault={iconCreateFunction:function(e){var t=" marker-cluster-";return e<10?t+="small":e<100?t+="medium":t+="large",new L.DivIcon({html:"<div><span>"+e+"</span></div>",className:"marker-cluster"+t,iconSize:new L.Point(40,40)})},_shownPolygon:null,bindEvents:function(e,t){var n=this,r=!1;e.on("zoomstart",function(){r=!0}),e.on("zoomend",function(){r=!1}),t.on("clusterclick",function(t){e.getMaxZoom()===e.getZoom()?t.layer.spiderfy():t.layer.zoomT [...]
\ No newline at end of file

-- 
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