Meta layer click event is incorrectly fired after map drag
osvodef opened this issue · comments
Alex Fedosov commented
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