Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(MapContext.initMarkerCluster): gridSize type #273

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions test/api-doc.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3053,6 +3053,13 @@ type TPlatform = 'ios' | 'android' | 'windows' | 'mac' | 'devtools'
],
})
},
initMarkerCluster() {
this.mapCtx.initMarkerCluster({
enableDefaultStyle: true,
zoomOnClick: true,
gridSize: 60
})
}
})
}

Expand Down
2 changes: 1 addition & 1 deletion types/wx/lib.wx.api.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3654,7 +3654,7 @@ backgroundAudioManager.src = 'http://ws.stream.qqmusic.qq.com/M500001VfvsJ21xFqb
/** 接口调用失败的回调函数 */
fail?: InitMarkerClusterFailCallback
/** 聚合算法的可聚合距离,即距离小于该值的点会聚合至一起,以像素为单位 */
gridSize?: boolean
gridSize?: number
/** 接口调用成功的回调函数 */
success?: InitMarkerClusterSuccessCallback
/** 点击已经聚合的标记点时是否实现聚合分离 */
Expand Down