maptalks / maptalks/maptalks.markercluster
0.10.0版本,identify方法异常
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 49
- Forks
- 19
- PR merge metrics
- No merged PRs in 30d
Description
maptalks-gl v0.124.4 ,我的目的是map监听鼠标移动事件,当划过clusterLayer内的要素时,显示标签,所以就在map和cluterLayer初始化成功之后添加监听事件:
map.on('mousemove', function (e) {
console.log(clusterLayer.identify(e.coordinate));
});
但是由于报错直接地图卡死
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Reproduce the issue with maptalks-gl v0.124.4 and maptalks.markercluster v0.8.8 using the reported map mousemove handler and clusterLayer.identify(e.coordinate) call. Start by checking the console error shown in the attachment and comparing the same interaction with the older versions; done means identifying features while moving over the cluster layer no longer freezes the map.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- frontend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Quiet
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100