A vector tile source. Tiles must be in Mapbox Vector Tile format. All geometric coordinates in vector tiles must be between -1 * extent and (extent * 2) - 1 inclusive. All layers that use a vector source must specify a source-layer value.
Constructors
-
VectorSource({required String id, String? url, List<
String> ? tiles, List<double> bounds = const [-180, -85.051129, 180, 85.051129], TileScheme scheme = TileScheme.xyz, double minZoom = 0, double maxZoom = 2, String? attribution, bool volatile = false, String? sourceLayer}) -
The default constructor for a VectorSource object.
const
Properties
- attribution → String?
-
Contains an attribution to be displayed when the map is shown to a user.
final
-
bounds
→ List<
double> -
An array containing the longitude and latitude of the southwest and
northeast corners of the source's bounding box in the following order:
sw.lng, sw.lat, ne.lng, ne.lat. When this property is included in a source, no tiles outside of the given bounds are requested by MapLibre.final - hashCode → int
-
The hash code for this object.
no setterinherited
- id → String
-
The id of the source.
finalinherited
- maxZoom → double
-
Maximum zoom level for which tiles are available, as in the TileJSON
spec. Data from tiles at the maxzoom are used when displaying the map at
higher zoom levels.
final
- minZoom → double
-
Minimum zoom level for which tiles are available, as in the TileJSON spec.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- scheme → TileScheme
-
Influences the y direction of the tile coordinates. The global-mercator
(aka Spherical Mercator) profile is assumed.
final
- sourceLayer → String?
-
Layer to use from a vector tile source. Required for vector tile sources;
prohibited for all other source types, including GeoJSON sources.
final
-
tiles
→ List<
String> ? -
An array of one or more tile source URLs, as in the TileJSON spec.
final
- url → String?
-
A URL to a TileJSON resource. Supported protocols are
http:andhttps:.final - volatile → bool
-
A setting to determine whether a source's tiles are cached locally.
final
Methods
-
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