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

JS errors after removing layer from a map #75

Open
aparshin opened this issue Nov 17, 2016 · 1 comment
Open

JS errors after removing layer from a map #75

aparshin opened this issue Nov 17, 2016 · 1 comment

Comments

@aparshin
Copy link

Test case is the following:

var mvtSource = new L.TileLayer.MVTSource({...})
map.addLayer(mvtSource)
map.removeLayer(mvtSource)

This code results in a JS error in L.TileLayer.bringToFront() method.

Here is online demo: http://aparshin.ru/temp/mvt_bug.html

Looks like the reason is that you are trying to do some actions when previously requested vector tile is received for already removed layer.

@bozdoz
Copy link

bozdoz commented Feb 3, 2017

Solved in #68

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants