Skip to content

Commit

Permalink
feat(MarkerClusterer): add batchSize option (#544)
Browse files Browse the repository at this point in the history
* Original commit: 37fc4d6
* Original author: @rahulpatidarrails 
* Closes: #544, #509
  • Loading branch information
rahulpatidarrails authored and tomchentw committed Jul 18, 2017
1 parent 1eff3c6 commit ff6b14b
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/lib/addons/MarkerClusterer.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ const controlledPropTypes = {
// http://google-maps-utility-library-v3.googlecode.com/svn/trunk/markerclustererplus/docs/reference.html
averageCenter: PropTypes.bool,
batchSizeIE: PropTypes.number,
batchSize: PropTypes.number,
calculator: PropTypes.func,
clusterClass: PropTypes.string,
enableRetinaIcons: PropTypes.bool,
Expand Down Expand Up @@ -65,6 +66,8 @@ const publicMethodMap = {
getAverageCenter(markerClusterer) { return markerClusterer.getAverageCenter(); },

getBatchSizeIE(markerClusterer) { return markerClusterer.getBatchSizeIE(); },

getBatchSize(markerClusterer) { return markerClusterer.getBatchSize(); },

getCalculator(markerClusterer) { return markerClusterer.getCalculator(); },

Expand Down Expand Up @@ -131,7 +134,11 @@ const controlledPropUpdaterMap = {
batchSizeIE(markerClusterer, batchSizeIE) {
markerClusterer.setBatchSizeIE(batchSizeIE);
},


batchSize(markerClusterer, batchSize) {
markerClusterer.setBatchSize(batchSize);
},

calculator(markerClusterer, calculator) { markerClusterer.setCalculator(calculator); },

enableRetinaIcons(markerClusterer, enableRetinaIcons) {
Expand Down

0 comments on commit ff6b14b

Please sign in to comment.