addStyleImage method

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. Existing images with the same imageId are replaced. stretchX and stretchY default to empty lists; content and sdf to null/false — mirroring the most common usage.

Implementation

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,
  sdf,
  stretchX,
  stretchY,
  content,
);