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

Map fire event after removing #281

Open
ovvost opened this issue Aug 7, 2015 · 0 comments
Open

Map fire event after removing #281

ovvost opened this issue Aug 7, 2015 · 0 comments
Labels
Milestone

Comments

@ovvost
Copy link

ovvost commented Aug 7, 2015

Например, такой код:

map = new DG.Map('map', {
    center: new DG.LatLng(54.980206086231, 82.898068362003),
    zoom: 15
});

map.on('zoomend', function() {
    console.log('zoomend')
    map.remove();
    console.log('remove')
});

map.on('moveend', function() {
    console.log('moveend')
});

Выведет в консоль:

'zoomend'
'remove'
'moveend'

Кажется, что если карта удалена, то никакие обработчики больше вызываться не должны.

@ovvost ovvost added the bug label Aug 7, 2015
@Trufi Trufi added this to the Backlog milestone Oct 14, 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