addStyleImage method

  1. @Deprecated('Use addImage with StyleImage.bytes or StyleImage.rgba.')
Future<void> addStyleImage(
  1. String imageId,
  2. double scale,
  3. MbxImage image, {
  4. bool sdf = false,
  5. List<ImageStretches?> stretchX = const <ImageStretches?>[],
  6. List<ImageStretches?> stretchY = const <ImageStretches?>[],
  7. ImageContent? content,
})

Adds an image to the style.

Prefer addImage with a StyleImage.

Implementation

@Deprecated('Use addImage with StyleImage.bytes or StyleImage.rgba.')
Future<void> addStyleImage(
  String imageId,
  double scale,
  MbxImage image, {
  bool sdf = false,
  List<ImageStretches?> stretchX = const <ImageStretches?>[],
  List<ImageStretches?> stretchY = const <ImageStretches?>[],
  ImageContent? content,
}) => _impl.addStyleImage(
  imageId,
  scale,
  image.toStyleImage(),
  sdf,
  stretchX,
  stretchY,
  content,
);