MTStyleImageOptions
public struct MTStyleImageOptions : Codable, Equatable, Sendable
Configuration that controls how an image is registered within the MapTiler style.
-
Pixel ratio of the supplied image. Values below zero are ignored.
Declaration
Swift
public var pixelRatio: Double? -
Indicates whether the image should be interpreted as a signed distance field.
Declaration
Swift
public var sdf: Bool? -
Horizontal stretch ranges applied when rendering the image.
Declaration
Swift
public var stretchX: [Stretch]? -
Vertical stretch ranges applied when rendering the image.
Declaration
Swift
public var stretchY: [Stretch]? -
Content insets that describe the stretchable area of the image.
Declaration
Swift
public var content: Content? -
Creates a new set of image options.
Declaration
Parameters
pixelRatioPixel ratio of the supplied image.
sdfIndicates whether the image should be interpreted as a signed distance field.
stretchXHorizontal stretch ranges applied when rendering the image.
stretchYVertical stretch ranges applied when rendering the image.
contentInsets describing the stretchable area of the image.
-
Describes a stretchable segment on an axis.
See moreDeclaration
Swift
struct Stretch : Codable, Equatable, Sendable -
Insets that describe the stretchable area of the image.
See moreDeclaration
Swift
struct Content : Codable, Equatable, Sendable