updateImage method

  1. @Deprecated('Use updateStyleImage with StyleImage.bytes or StyleImage.rgba.')
Future<void>? updateImage(
  1. 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());
}