maptalks / maptalks/maptalks.markercluster

0.10.0版本,identify方法异常

Open
#81 0 comments 0 reactions 0 assignees View on GitHub

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));
});
但是由于报错直接地图卡死

Image ps: 我是直接从maptalks-gl v0.114.0 以及 maptalks.markercluster v0.8.8版本升到最新的版本,旧版本是正常的

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.