flutter_map_vector_tiles library
Vector tiles for flutter_map: a MapLibre-style vector tile layer with isolate-based decoding, GPU-resident tile rasters and screen-space label collision.
Classes
- AttributionSpan
- One run of attribution text, carrying the link it sat inside — if any.
- BackgroundThemeLayer
- CancellationToken
- Cooperative cancellation. Cancellation is a state — checked at yield points — never an exception surfaced to callers.
- CircleThemeLayer
- EvalContext
- Evaluation context for compiled style expressions.
- FillThemeLayer
- LineThemeLayer
- Logger
- Minimal logger abstraction so library diagnostics can be surfaced or silenced by the application.
- MemoryVectorTileProvider
- Serves tiles from an in-memory map — useful for tests and for bundled offline regions.
- NetworkVectorTileProvider
-
Loads tiles over HTTP from a
{z}/{x}/{y}URL template. - PmTilesCompression
- PMTiles v3 binary format: header, directory entries and the Hilbert-curve tile addressing scheme.
- PmTilesDirectory
- A decoded (decompressed) directory.
- PmTilesEntry
-
One directory entry: a tile blob (
runLength>= 1, coveringrunLengthconsecutive tile IDs) or a leaf directory (runLength== 0). - PmTilesHeader
- The fixed 127-byte archive header.
- PmTilesVectorTileProvider
-
Serves tiles from a single-file PMTiles v3 archive over HTTP range
requests — the format behind
pmtiles://sources in MapLibre styles (Protomaps). - RasterThemeLayer
-
A
rasterlayer displaying image tiles from a raster source declared inside a vector style (satellite/hybrid styles, pre-rendered hillshading). Painted into the tile raster at its style position. - RasterTileSource
-
A raster tile source declared inside a vector style, referenced by
rasterlayers (satellite/hybrid imagery, pre-rendered hillshading). -
SingleFlight<
K, V> - Coalesces concurrent asynchronous work by key.
- Sprite
- SpriteAtlas
- A sprite sheet: one decoded image plus named sub-rectangles.
- Style
- A ready-to-render style: compiled theme, tile providers, sprites and the style's suggested initial camera.
- StyleAttribution
- Attribution declared by a style source, or by the TileJSON it points at.
- StyleReader
- Loads a MapLibre/Mapbox GL style document and everything it references (TileJSON sources, sprites) into a Style.
- SymbolThemeLayer
- Theme
- A compiled map style: an ordered list of paintable layers.
- ThemeLayer
- Base class for compiled style layers.
- ThemeReader
- Compiles a MapLibre/Mapbox GL style JSON document into a Theme.
- TileKey
- Identifies a slippy-map tile by zoom and grid position.
- TileOffset
- Relates the map's display zoom to the data/style zoom.
- TileProviders
-
Vector tile providers keyed by style source id (the keys of the
style's
sourcesobject). - TileResponse
- Result of a tile load. Cancellation and absence are ordinary states — they never surface as exceptions.
- TileResponseCancelled
- The request was cancelled before completion.
- TileResponseData
- Tile bytes were retrieved.
- TileResponseError
- A transient failure (network, 5xx). The pipeline may retry later.
- TileResponseNotFound
- The tile does not exist (404/204/empty body). Rendered as an empty tile and cached as such.
- VectorTileLayer
-
A vector tile layer for
flutter_map, drawing a MapLibre-style Theme from MVT tile sources. - VectorTileProvider
-
Provides raw tile bytes for tile coordinates — MVT data for vector
sources, encoded images (PNG/JPEG/WebP) when used in a
RasterTileSource.
Constants
- pmTilesMaxAddressableZoom → const int
- Highest zoom whose tile IDs stay exactly representable as JS doubles (z=27 IDs would exceed 2^53).
Functions
-
zxyToTileId(
int z, int x, int y) → int -
Maps z/x/y to the cumulative Hilbert-curve tile ID used by PMTiles:
all tiles of zooms below
zfirst, then the position of (x, y) on the zoom-zHilbert curve.