Update build

This commit is contained in:
danzel
2012-09-03 09:24:03 +12:00
parent c9a45984d7
commit 116a1876eb
2 changed files with 13 additions and 1 deletions
+12
View File
@@ -19,6 +19,7 @@ L.MarkerClusterGroup = L.FeatureGroup.extend({
spiderfyOnMaxZoom: true,
showCoverageOnHover: true,
zoomToBoundsOnClick: true,
singleMarkerMode: false,
disableClusteringAtZoom: null
},
@@ -49,6 +50,17 @@ L.MarkerClusterGroup = L.FeatureGroup.extend({
return this;
}
if (this.options.singleMarkerMode) {
layer.options.icon = this.options.iconCreateFunction({
getChildCount: function () {
return 1;
},
getAllChildMarkers: function () {
return [layer];
}
});
}
if (!this._map) {
this._needsClustering.push(layer);
return this;
+1 -1
View File
File diff suppressed because one or more lines are too long