Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Meta layer click event is incorrectly fired after map drag #341

Open
osvodef opened this issue Apr 11, 2016 · 0 comments
Open

Meta layer click event is incorrectly fired after map drag #341

osvodef opened this issue Apr 11, 2016 · 0 comments

Comments

@osvodef
Copy link
Contributor

osvodef commented Apr 11, 2016

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)
       });
   });
  1. Click on a parking icon and drag the map a bit
  2. Click on a building near the parking

Expected result:
Geoclicker callout

Actual result:
Geoclicker isn't activated, poi click! is printed in the console

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant