updateImage method
- @Deprecated('Use updateStyleImage with StyleImage.bytes or StyleImage.rgba.')
- MbxImage image
Updates the image of an image style source.
Prefer updateStyleImage with a StyleImage.
See https://docs.mapbox.com/style-spec/reference/sources/#image
Implementation
@Deprecated('Use updateStyleImage with StyleImage.bytes or StyleImage.rgba.')
Future<void>? updateImage(MbxImage image) {
return style?.updateStyleImageSourceImage(id, image.toStyleImage());
}