NetworkVectorTileProvider class
- Inheritance
-
- Object
- VectorTileProvider
- NetworkVectorTileProvider
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 passingAuthentication
header instead of anapi_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
ormvt
format for type of TileProviderType.vector orpng
for TileProviderType.rasteroverride -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited