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

removeImage on an animated image throws Uncaught TypeError: Cannot destructure property 'userImage' of 'e' as it is undefined #11558

Closed
andrewharvey opened this issue Mar 1, 2022 · 2 comments · Fixed by #11580
Labels

Comments

@andrewharvey
Copy link
Collaborator

mapbox-gl-js version: 2.7.0

browser: Chrome

Steps to Trigger Behavior

  1. Follow the example at https://docs.mapbox.com/mapbox-gl-js/example/add-image-animated/ to add an animated image to the map
  2. use map.removeImage

Link to Demonstration

https://codepen.io/andrewharvey/pen/BamGabP

Expected Behavior

no error, the image just gets removed.

Actual Behavior

an error is logged in the console

Uncaught TypeError: Cannot destructure property 'userImage' of 'e' as it is undefined.
    at _ (style_image.js:34:12)
    at dispatchRenderCallbacks (image_manager.js:298:29)
    at jc.patchUpdatedImages (image_atlas.js:125:22)
    at ad.prepare (tile.js:384:29)
    at qp.prepare (source_cache.js:168:18)
    at _o.render (painter.js:484:29)
    at Map._render (map.js:2944:26)
    at map.js:3270:26
@Kacri
Copy link

Kacri commented Mar 26, 2022

Excuse me, can you advise me on angular and mapbox, I'm doing a project.

@stepankuzmin
Copy link
Contributor

Hi @Kacri

Thank you for using mapbox-gl-js. For advises like this, please refer to our help documentation, and if you can't find the answer there, contact support. This issue tracker is for reporting bugs and feature requests.

You might also consider posting your question to https://stackoverflow.com/questions/tagged/mapbox-gl-js to ask the community for help.

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

Successfully merging a pull request may close this issue.

3 participants