[Pkg-javascript-commits] [leaflet-markercluster] 378/479: Update build.
Jonas Smedegaard
dr at jones.dk
Thu Oct 16 16:00:59 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 01d9951b00114f28cb8e0c005d016550684e4a57
Author: danzel <danzel at localhost.geek.nz>
Date: Fri Jun 21 15:18:32 2013 +1200
Update build.
---
dist/leaflet.markercluster-src.js | 20 ++++++++++++++------
dist/leaflet.markercluster.js | 2 +-
2 files changed, 15 insertions(+), 7 deletions(-)
diff --git a/dist/leaflet.markercluster-src.js b/dist/leaflet.markercluster-src.js
index 5206285..45791a8 100644
--- a/dist/leaflet.markercluster-src.js
+++ b/dist/leaflet.markercluster-src.js
@@ -21,9 +21,9 @@ L.MarkerClusterGroup = L.FeatureGroup.extend({
disableClusteringAtZoom: null,
- // Setting this to false prevents the removal of any clusters outside of the viewpoint, which
- // is the default behaviour for performance reasons.
- removeOutsideVisibleBounds: true,
+ // Setting this to false prevents the removal of any clusters outside of the viewpoint, which
+ // is the default behaviour for performance reasons.
+ removeOutsideVisibleBounds: true,
//Whether to animate adding markers after adding the MarkerClusterGroup to the map
// If you are adding individual markers set to true, if adding bulk markers leave false for massive performance gains.
@@ -395,6 +395,13 @@ L.MarkerClusterGroup = L.FeatureGroup.extend({
this._map = null;
},
+ getVisibleParent: function (marker) {
+ var vMarker = marker;
+ while (vMarker !== null && !vMarker._icon) {
+ vMarker = vMarker.__parent;
+ }
+ return vMarker;
+ },
//Remove the given object from the given array
_arraySplice: function (anArray, obj) {
@@ -704,9 +711,9 @@ L.MarkerClusterGroup = L.FeatureGroup.extend({
//Gets the maps visible bounds expanded in each direction by the size of the screen (so the user cannot see an area we do not cover in one pan)
_getExpandedVisibleBounds: function () {
- if (!this.options.removeOutsideVisibleBounds) {
- return this.getBounds();
- }
+ if (!this.options.removeOutsideVisibleBounds) {
+ return this.getBounds();
+ }
var map = this._map,
bounds = map.getBounds(),
@@ -916,6 +923,7 @@ L.markerClusterGroup = function (options) {
return new L.MarkerClusterGroup(options);
};
+
L.MarkerCluster = L.Marker.extend({
initialize: function (group, zoom, a, b) {
diff --git a/dist/leaflet.markercluster.js b/dist/leaflet.markercluster.js
index c27b485..00dc6de 100644
--- a/dist/leaflet.markercluster.js
+++ b/dist/leaflet.markercluster.js
@@ -3,4 +3,4 @@
https://github.com/Leaflet/Leaflet.markercluster
(c) 2012-2013, Dave Leaver, smartrak
*/
-!function(t,e){L.MarkerClusterGroup=L.FeatureGroup.extend({options:{maxClusterRadius:80,iconCreateFunction:null,spiderfyOnMaxZoom:!0,showCoverageOnHover:!0,zoomToBoundsOnClick:!0,singleMarkerMode:!1,disableClusteringAtZoom:null,removeOutsideVisibleBounds:!0,animateAddingMarkers:!1,spiderfyDistanceMultiplier:1,polygonOptions:{}},initialize:function(t){L.Util.setOptions(this,t),this.options.iconCreateFunction||(this.options.iconCreateFunction=this._defaultIconCreateFunction),L.FeatureGroup [...]
\ No newline at end of file
+!function(t,e){L.MarkerClusterGroup=L.FeatureGroup.extend({options:{maxClusterRadius:80,iconCreateFunction:null,spiderfyOnMaxZoom:!0,showCoverageOnHover:!0,zoomToBoundsOnClick:!0,singleMarkerMode:!1,disableClusteringAtZoom:null,removeOutsideVisibleBounds:!0,animateAddingMarkers:!1,spiderfyDistanceMultiplier:1,polygonOptions:{}},initialize:function(t){L.Util.setOptions(this,t),this.options.iconCreateFunction||(this.options.iconCreateFunction=this._defaultIconCreateFunction),L.FeatureGroup [...]
\ 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