addStyleImage method
- String imageId,
- double scale,
- MbxImage image, {
- bool sdf = false,
- List<
ImageStretches?> stretchX = const <ImageStretches?>[], - List<
ImageStretches?> stretchY = const <ImageStretches?>[], - 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,
);