We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
mapbox-gl-js version: v0.42.2 mapbox-gl-draw version: v1.0.4
control.addLayers
Control should check for layers/sources before trying to remove them.
Many errors are thrown related to missing layers/sources.
eg: The layer 'gl-draw-polygon-fill-static.hot' does not exist in the map's style
The layer 'gl-draw-polygon-fill-static.hot' does not exist in the map's style
Contrived CodePen example: https://codepen.io/gpbmike/pen/EbqNmp
My use case: User navigates to route with map then quickly navigates away before the map loads.
The text was updated successfully, but these errors were encountered:
Hmmm... yea it looks like even map.removeControl(Draw) has to be called after map.on('load', () => {}) has been triggered.
map.removeControl(Draw)
map.on('load', () => {})
I'm guessing we just need some extra handling here.
Sorry, something went wrong.
This looks like it was fixed sometime between v1.0.4 and v1.0.9. Perhaps by me? #685 😅
No branches or pull requests
mapbox-gl-js version: v0.42.2
mapbox-gl-draw version: v1.0.4
Steps to Trigger Behavior
control.addLayers
is called).Expected Behavior
Control should check for layers/sources before trying to remove them.
Actual Behavior
Many errors are thrown related to missing layers/sources.
eg:
The layer 'gl-draw-polygon-fill-static.hot' does not exist in the map's style
Additional Details
Contrived CodePen example: https://codepen.io/gpbmike/pen/EbqNmp
My use case: User navigates to route with map then quickly navigates away before the map loads.
The text was updated successfully, but these errors were encountered: