Type Alias StyleImageMetadata
content?: [number, number, number, number];
pixelRatio: number;
sdf: boolean;
stretchX?: [number, number][];
stretchY?: [number, number][];
textFitHeight?: TextFit;
textFitWidth?: TextFit;
}
Index
Properties
Optionalcontent
If icon-text-fit is used in a layer with this image, this option defines the part of the image that can be covered by the content in text-field.
pixelRatio
The ratio of pixels in the image to physical pixels on the screen
sdf
Whether the image should be interpreted as an SDF image
OptionalstretchX
If icon-text-fit is used in a layer with this image, this option defines the part(s) of the image that can be stretched horizontally.
OptionalstretchY
If icon-text-fit is used in a layer with this image, this option defines the part(s) of the image that can be stretched vertically.
OptionaltextFitHeight
If icon-text-fit is used in a layer with this image, this option defines constraints on the vertical scaling of the image.
OptionaltextFitWidth
If icon-text-fit is used in a layer with this image, this option defines constraints on the horizontal scaling of the image.
The style's image metadata