VectorSourceProperties class
Constructors
-
VectorSourceProperties({String? url, List<String>? tiles, List<double>? bounds = const [-180, -85.051129, 180, 85.051129], String? scheme = "xyz", double? minzoom = 0, double? maxzoom = 22, String? attribution, String? promoteId, bool? volatile = false, String? encoding = "mvt"})
-
const
-
VectorSourceProperties.fromJson(Map<String, dynamic> json)
-
factory
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
-
encoding
→ String?
-
The encoding used by this source. Mapbox Vector Tiles encoding is used
by default.
final
-
hashCode
→ int
-
The hash code for this object.
no setterinherited
-
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
-
promoteId
→ String?
-
A property to use as a feature id (for feature state). Either a
property name, or an object of the form
{<sourceLayer>: <propertyName>}. If specified as a string for a vector tile source,
the same property is used across all its source layers.
final
-
runtimeType
→ Type
-
A representation of the runtime type of the object.
no setterinherited
-
scheme
→ String?
-
Influences the y direction of the tile coordinates. The
global-mercator (aka Spherical Mercator) profile is assumed.
final
-
tiles
→ List<String>?
-
An array of one or more tile source URLs, as in the TileJSON spec.
These tokens in a URL are replaced for each tile:
final
-
url
→ String?
-
A URL to a TileJSON resource. Supported protocols are
http: and
https:.
final
-
volatile
→ bool?
-
A setting to determine whether a source's tiles are cached locally.
final
Methods
-
copyWith({String? url, List<String>? tiles, List<double>? bounds, String? scheme, double? minzoom, double? maxzoom, String? attribution, String? promoteId, bool? volatile, String? encoding})
→ VectorSourceProperties
-
-
noSuchMethod(Invocation invocation)
→ dynamic
-
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson()
→ Map<String, dynamic>
-
override
-
toString()
→ String
-
A string representation of this object.
inherited