Skip to content

Commit 0c6c03a

Browse files
authored
Update README.md
1 parent d826cf9 commit 0c6c03a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,12 @@ My current implementation now includes the following changes:
2121
- LineStrings and Polygons are being clustered as well, using the center point of their bounding rectangles
2222
- new option 'setProperty': If set to true, instead of changing the StyleOption attribute 'visible' of the features directly, a boolean property 'in_cluster' (or a configurable property name defined in the constant DataLayerClusterer.CLUSTER_PROPERTY_NAME) is set on the features, which can then be used to toggle visibility (for example in order to take into account other properties for additonal filtering)
2323
- new option 'recolorSvg': (string) only takes action if SVG is supported and being used: a selector string for an SVG element in the set imagePath that can be used for re-coloring the cluster marker image. This saves requests and prevents the different marker images popping up after loading.
24+
- new option: 'minimumPolySize': (number) The minimum width or height of the bounding box of a feature (other than type 'Point') in pixels before it is forced into a cluster, even if the cluster ends up containing only this one feature. 0 or false to disable this functionality.
2425

2526
To read more and view a working example, see my blog post at www.constantinmedia.com/2016/09/google-maps-javascript-api-v3-handling-large-amounts-of-features-using-clustering-in-data-layers/
2627

2728
## More to come
28-
- Cluster LineStrings and Polygons not only based on their bounding rectangle center points, but also if they are becoming too small according to a threshold value in pixels for either width or height
29+
- When LineStrings and Polygons are becoming too small according to the minimumPolySize option, display a marker instead for better visibility.
2930

3031
## License
3132

0 commit comments

Comments
 (0)