Meta layer click event is incorrectly fired after map drag
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 35/100
- Issue type
- Bug
- Clarity
- Mostly clear
- Activity status
- Stale
- Tech stack
- javascript
- Domain
- frontend
Research direction
Reproduce the issue from the DG.map setup and the map.poi.getMetaLayer().on('click') entry point, first checking how dragging affects the subsequent click event. Done means clicking a building after dragging activates the Geoclicker callout without logging a poi click event.
Written by the indexing model from the issue text.
Description
Steps to reproduce:
Init map:
DG.then(function () {
map = DG.map('map', {
center: [55.75341, 37.602865],
zoom: 18,
geoclicker: true,
poi: {disableLabel: true},
});
map.poi.getMetaLayer().on('click', function(e) {
console.log('poi click!', e)
});
});
- Click on a parking icon and drag the map a bit
- Click on a building near the parking
Expected result:
Geoclicker callout
Actual result:
Geoclicker isn't activated, poi click! is printed in the console
- Dominant language
- JavaScript
- Stars
- 212
- Forks
- 36
- PR merge metrics
- No merged PRs in 30d
Contributor guide
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.
More from 2gis/mapsapi
-
Difficulty 5/5 Over a week Newbie friendliness 20/100
-
Difficulty 5/5 Over a week Newbie friendliness 20/100
-
map is not centering Open
Difficulty 3/5 1-2 days Newbie friendliness 25/100
-
Difficulty 5/5 Over a week Newbie friendliness 20/100
-
Difficulty 3/5 1-2 days Newbie friendliness 35/100
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
HarperFast/skills#96 ·
-
[Block] Latest Posts [Type] Bug
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Automattic/studio#4908 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 86/100
sugarlabs/musicblocks#8847 ·