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

when the style changes tb.zoomLayers must be reset #122

Closed
jscastro76 opened this issue Dec 2, 2020 · 1 comment
Closed

when the style changes tb.zoomLayers must be reset #122

jscastro76 opened this issue Dec 2, 2020 · 1 comment
Assignees
Labels
Milestone

Comments

@jscastro76
Copy link
Owner

jscastro76 commented Dec 2, 2020

the zoomLayers must be reset, otherwise there will be an error raised on zoom. this could be made on styledataloading or in style.load, to investigate

map.on('styledataloading', function() {
console.log('A styledataloading event occurred.');
});
@jscastro76 jscastro76 added the 🪲 bug Something isn't working label Dec 2, 2020
@jscastro76 jscastro76 added this to the v2.1.1. milestone Dec 2, 2020
@jscastro76 jscastro76 self-assigned this Dec 2, 2020
jscastro76 added a commit that referenced this issue Dec 3, 2020
…bility

- [#122](#122) when the style changes `tb.zoomLayers` must be reset
- [#123](#123) style change doesn't work when `multiLayer = true`
@jscastro76
Copy link
Owner Author

Finally made in the new call to style.load

this.map.on('style.load', function () {
			this.tb.zoomLayers = [];

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

1 participant