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

styleimagemissing event missing id property #13232

Closed
AnthonyKartorium opened this issue Jul 18, 2024 · 2 comments
Closed

styleimagemissing event missing id property #13232

AnthonyKartorium opened this issue Jul 18, 2024 · 2 comments
Labels
types Issues related to the public TypeScript typings

Comments

@AnthonyKartorium
Copy link

mapbox-gl-js version: 3.5.2

browser: Chrome

Expected Behavior

this.map.on('styleimagemissing', (event) => {
const imageID = event.id
}
the returned event to have an id as stated in the documentation

Actual Behavior

Property 'id' does not exist on type '{ type: "styleimagemissing"; target: Map$1; }'.

const imageID = event.id

@stepankuzmin stepankuzmin added the types Issues related to the public TypeScript typings label Jul 19, 2024
@stepankuzmin
Copy link
Contributor

Hi @AnthonyKartorium,

Good catch, thanks! We'll address it in the next release.

@stepankuzmin
Copy link
Contributor

Hi @AnthonyKartorium,

This should be fixed in the latest GL JS. Closing the issue, but feel free to comment if you have any questions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
types Issues related to the public TypeScript typings
Projects
None yet
Development

No branches or pull requests

2 participants