mapsapi icon indicating copy to clipboard operation
mapsapi copied to clipboard

Meta layer click event is incorrectly fired after map drag

Open osvodef opened this issue 8 years ago • 0 comments

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

osvodef avatar Apr 11 '16 10:04 osvodef