# MapContext.initMarkerCluster(Object object)

Start from base library version 2.13.0. Please remaining backward compatible.

with Promise style call: Not supported

Mini Program plugin: Support

Initializes the configuration of the point aggregation, the default configuration when not invoked.

# parameter

# Object object

attribute type Default values Required Introductions
enableDefaultStyle boolean true no Enable default aggregate styles
ZoomOnClick boolean true no Whether to implement aggregation separation when clicking on the already aggregated marker
gridSize boolean 60 no Aggregation algorithm can be aggregated distance, that is, distance less than this value points will be aggregated together, in pixels
success function no Interface calls the successful callback function
fail function no Interface calls failed callback functions
complete function no Callback function at the end of an interface call (both successful and unsuccessful calls are executed)