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

Click throw markers without popups in map #179

Open
andymost opened this issue Feb 20, 2015 · 1 comment
Open

Click throw markers without popups in map #179

andymost opened this issue Feb 20, 2015 · 1 comment
Labels
Milestone

Comments

@andymost
Copy link
Contributor

При клике в недрагабельные маркеры без балунов проскакиевает клик в карту.
Маркеры создаются:

md1 = DG.marker([54.98, 82.91]).addTo(map);
md1.bindLabel('Я статическая подсказка 1 !', { static: true });
@andymost andymost added the bug label Feb 20, 2015
@andymost andymost added this to the Release 2.0.34 milestone Feb 20, 2015
@Trufi Trufi self-assigned this Feb 24, 2015
@Trufi
Copy link
Contributor

Trufi commented Feb 25, 2015

Для получения бага достаточно DG.marker([54.98, 82.91]).addTo(map);.

Так работает leaflet, если на layer, а в нашем случае. на маркер не навешивается не одно событие, то он пропускает его дальше.

Например, так:

DG.marker([54.98, 82.91])
  .on('click', function () {
    console.log('marker click');
  })
  .addTo(map);

клик в карту уже не будет срабатывать.

С @ilfa обсудили, решили пока не заморачиваться.

@Trufi Trufi modified the milestones: Backlog, Release 2.0.34 Feb 25, 2015
@Trufi Trufi removed their assignment Feb 25, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants