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

setStyle errors with some style objects #5953

Closed
adamal opened this issue Jan 5, 2018 · 0 comments
Closed

setStyle errors with some style objects #5953

adamal opened this issue Jan 5, 2018 · 0 comments
Assignees
Labels

Comments

@adamal
Copy link

adamal commented Jan 5, 2018

Since 0.42 I have been getting errors setting certain styles using map.setStyle(styleObject).
The errors remain in 0.43 and were not present in 0.41.

To reproduce:

  • Open this plunker and open the console.
  • Notice how the first style loads correctly initially.
  • Click on map to switch to the other style. Works correctly.
  • Click again to switch back to initial style. Nothing happens visually; I get several errors along the lines of:

Cannot read property 'r' of undefined
Cannot read property 'get' of undefined

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