Skip to content

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

Description

@osvodef

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions