2gis / mapsapi

Карты 2ГИС — это точные данные обо всех объектах города, включая новостройки, с детализацией до заборов и внутриквартальных проездов.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Meta layer click event is incorrectly fired after map drag

osvodef opened this issue · 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