Skip to content

Commit

Permalink
refactor: Remove marker-cluster options
Browse files Browse the repository at this point in the history
BREAKING CHANGE: Removes options markerCluster and markerClusterOptions from API
  • Loading branch information
oliverroick committed Mar 27, 2021
1 parent fe57fc5 commit ee25d96
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions src/L.Deflate.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,7 @@ L.Map.include({
L.Deflate = L.FeatureGroup.extend({
options: {
minSize: 10,
markerCluster: false,
markerOptions: {},
markerClusterOptions: {},
markerType: L.marker,
},

Expand All @@ -37,11 +35,6 @@ L.Deflate = L.FeatureGroup.extend({
return this.options.markerLayer;
}

if (this.options.markerCluster) {
console.warn('The options markerCluster and markerClusterOptions will be removed in the next major version of Leaflet.Deflate. Use the markerLayer option to inject a MarkerClusterGroup instance.'); // eslint-disable-line no-console
return L.markerClusterGroup(this.options.markerClusterOptions);
}

return L.featureGroup(this.options);
},

Expand Down

0 comments on commit ee25d96

Please sign in to comment.