Update build.

This commit is contained in:
danzel
2013-06-21 15:18:32 +12:00
parent fb395732b6
commit 01d9951b00
2 changed files with 15 additions and 7 deletions
+14 -6
View File
@@ -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) {
+1 -1
View File
File diff suppressed because one or more lines are too long