Update build

This commit is contained in:
danzel
2012-09-25 13:41:09 +12:00
parent 54335d1a60
commit d13b6758e1
2 changed files with 6 additions and 3 deletions
+5 -2
View File
@@ -27,7 +27,10 @@ L.MarkerClusterGroup = L.FeatureGroup.extend({
//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.
animateAddingMarkers: false
animateAddingMarkers: false,
//Options to pass to the L.Polygon constructor
polygonOptions: {}
},
initialize: function (options) {
@@ -372,7 +375,7 @@ L.MarkerClusterGroup = L.FeatureGroup.extend({
map.removeLayer(shownPolygon);
}
if (a.layer.getChildCount() > 2) {
shownPolygon = new L.Polygon(a.layer.getConvexHull());
shownPolygon = new L.Polygon(a.layer.getConvexHull(), this.options.polygonOptions);
map.addLayer(shownPolygon);
}
}, this);
+1 -1
View File
File diff suppressed because one or more lines are too long