MvtSpriteEntry

class MvtSpriteEntry(val name: String, val x: Int, val y: Int, val width: Int, val height: Int, val pixelRatio: Double = 1.0, val content: IntArray? = null, val sdf: Boolean = false)

One icon's slice within a Mapbox-format sprite sheet: pixel rectangle within the atlas PNG plus optional pixelRatio (@2x / @3x HiDPI variants ship the same icon at integer scales of the base; the renderer divides by pixelRatio when sizing the on-screen Placemark).

Constructors

Link copied to clipboard
constructor(name: String, x: Int, y: Int, width: Int, height: Int, pixelRatio: Double = 1.0, content: IntArray? = null, sdf: Boolean = false)

Properties

Link copied to clipboard

Optional content-rect inset, used by Mapbox icons that have padded transparent halo.

Link copied to clipboard
val height: Int
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val width: Int
Link copied to clipboard
val x: Int
Link copied to clipboard
val y: Int

Functions

Link copied to clipboard
open override fun toString(): String