mapbox-gl-js icon indicating copy to clipboard operation
mapbox-gl-js copied to clipboard

Type definition changed on ImageManager v3.11

Open polkduran opened this issue 1 year ago • 1 comments

More a question than and issue.

Member images on ImageManager renamed to _images from v3.11.0-beta.1.

Is this a member not meant to be used ?

I use this member to get the images of a current style before changing to another base map style so I can add them to the new selected style (as well as sources and layers) and keep the context the user is working with.

This is a breaking change from 3.10 to 3.11 on the ImageManager class definition and breaks code using the images property.

Originally posted by @polkduran in f31af6e

polkduran avatar Apr 02 '25 11:04 polkduran

Hi @polkduran,

This is an internal change that is a part of the new Landmarks feature. Since it's not a public API, could you please share more about your use case? Why do you need to use ImageManager directly instead of Map#listImages()?

stepankuzmin avatar Apr 03 '25 08:04 stepankuzmin