RasterSourceUrl class final
A RasterSource whose tiles are described by a TileJSON resource.
- Inheritance
-
- Object
- Source
- RasterSource
- RasterSourceUrl
Constructors
-
RasterSourceUrl({required String id, required String url, List<
double> bounds = const [-180, -85.051129, 180, 85.051129], double minZoom = 0, double maxZoom = 22, int tileSize = 512, TileScheme scheme = TileScheme.xyz, String? attribution, bool volatile = false}) -
Creates a RasterSource from the TileJSON resource at
url.const
Properties
- attribution → String?
-
Contains an attribution to be displayed when the map is shown to a user.
finalinherited
-
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.finalinherited - 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.
finalinherited
- minZoom → double
-
Minimum zoom level for which tiles are available, as in the TileJSON spec.
finalinherited
- 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.
finalinherited
- tileSize → int
-
The minimum visual size to display tiles for this layer. Only
configurable for raster layers.
finalinherited
- url → String
-
A URL to a TileJSON resource. Supported protocols are
http:andhttps:, andpmtiles://in front of the URL of a PMTiles archive.final - volatile → bool
-
A setting to determine whether a source's tiles are cached locally.
finalinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, Object?> -
The source as JSON of a style, or null if it has no such form, as a
source of image bytes doesn't.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited