Skip to content
This repository has been archived by the owner on Mar 8, 2023. It is now read-only.

map.intersectMapObjects(e.pageX, e.pageY) notWork #1270

Closed
BoryaMogila opened this issue Feb 6, 2020 · 1 comment · Fixed by #1272
Closed

map.intersectMapObjects(e.pageX, e.pageY) notWork #1270

BoryaMogila opened this issue Feb 6, 2020 · 1 comment · Fixed by #1272
Assignees

Comments

@BoryaMogila
Copy link

BoryaMogila commented Feb 6, 2020

Describe the bug
after adding litener for click to examle
map.addDataSource(featuresDataSource).then(() => { map.canvas.addEventListener("click", (e: MouseEvent) => { const intersectionResults = map.intersectMapObjects(e.pageX, e.pageY); const usableResults = intersectionResults.filter(result => result.userData !== undefined); console.log(intersectionResults, usableResults) }); });
has error in console

@nzjony nzjony self-assigned this Feb 7, 2020
@nzjony
Copy link
Member

nzjony commented Feb 7, 2020

thanks @BoryaMogila, I will have a fix soon. Good spotting.

nzjony added a commit that referenced this issue Feb 7, 2020
nzjony added a commit that referenced this issue Feb 7, 2020
Signed-off-by: Jonathan Stichbury <2533428+nzjony@users.noreply.github.com>
nzjony added a commit that referenced this issue Feb 7, 2020
Signed-off-by: Jonathan Stichbury <2533428+nzjony@users.noreply.github.com>
nzjony added a commit that referenced this issue Feb 7, 2020
Signed-off-by: Jonathan Stichbury <2533428+nzjony@users.noreply.github.com>
nzjony added a commit that referenced this issue Feb 7, 2020
Signed-off-by: Jonathan Stichbury <2533428+nzjony@users.noreply.github.com>
nzjony added a commit that referenced this issue Feb 7, 2020
Signed-off-by: Jonathan Stichbury <2533428+nzjony@users.noreply.github.com>
nzjony added a commit that referenced this issue Feb 7, 2020
Signed-off-by: Jonathan Stichbury <2533428+nzjony@users.noreply.github.com>
nzjony added a commit that referenced this issue Feb 7, 2020
Signed-off-by: Jonathan Stichbury <2533428+nzjony@users.noreply.github.com>
nzjony added a commit that referenced this issue Feb 7, 2020
Signed-off-by: Jonathan Stichbury <2533428+nzjony@users.noreply.github.com>
nzjony added a commit that referenced this issue Feb 17, 2020
Signed-off-by: Jonathan Stichbury <2533428+nzjony@users.noreply.github.com>
nzjony added a commit that referenced this issue Feb 17, 2020
Signed-off-by: Jonathan Stichbury <2533428+nzjony@users.noreply.github.com>
nzjony added a commit that referenced this issue Feb 18, 2020
Signed-off-by: Jonathan Stichbury <2533428+nzjony@users.noreply.github.com>
nzjony added a commit that referenced this issue Feb 18, 2020
Signed-off-by: Jonathan Stichbury <2533428+nzjony@users.noreply.github.com>
nzjony added a commit that referenced this issue Feb 18, 2020
* Fixes #1270. Construct correct Raycaster and fix interface.

Signed-off-by: Jonathan Stichbury <2533428+nzjony@users.noreply.github.com>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants