RasterTileSource class

A raster tile source declared inside a vector style, referenced by raster layers (satellite/hybrid imagery, pre-rendered hillshading).

The provider serves encoded image bytes (PNG/JPEG/WebP) instead of MVT data — the VectorTileProvider interface is just bytes per tile coordinate, so NetworkVectorTileProvider works unchanged.

Constructors

RasterTileSource({required VectorTileProvider provider, int tileSize = 512})
const

Properties

hashCode → int
The hash code for this object.
no setterinherited
provider → VectorTileProvider
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
tileSize → int
The source's tileSize (256 or 512). MapLibre's default is 512; 256px sources are fetched one zoom level deeper for the same visual scale.
final

Methods

dispose() → void
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited