NetworkVectorTileProvider class

Inheritance

Constructors

NetworkVectorTileProvider({required String urlTemplate, TileProviderType type = TileProviderType.vector, Map<String, String>? httpHeaders, int maximumZoom = 16, int minimumZoom = 1})
urlTemplate the URL template, e.g. 'https://tiles.stadiamaps.com/data/openmaptiles/{z}/{x}/{y}.pbf?api_key=$apiKey' httpHeaders HTTP headers to include in requests, suitable for passing Authentication header instead of an api_key in the URL template maximumZoom the maximum zoom supported by the tile provider, not to be confused with the maximum zoom of the map widget. The map widget will automatically use vector tiles from lower zoom levels once the maximum supported by this provider is reached.

Properties

hashCode int
The hash code for this object.
no setterinherited
httpHeaders Map<String, String>?
final
maximumZoom int
final
minimumZoom int
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
type TileProviderType
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
provide(TileIdentity tile) Future<Uint8List>
provides a tile as a pbf or mvt format for type of TileProviderType.vector or png for TileProviderType.raster
override
toString() String
A string representation of this object.
inherited

Operators

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