ImageSource class

An image data source. @see The online documentation

Inheritance

Constructors

ImageSource({required String id, String? url, List<List<double?>?>? coordinates, double? prefetchZoomDelta})

Properties

coordinates Future<List<List<double?>?>?>
Corners of image specified in longitude, latitude pairs. Note: When using globe projection, the image will be centered at the North or South Pole in the respective hemisphere if the average latitude value exceeds 85 degrees or falls below -85 degrees.
no setter
hashCode int
The hash code for this object.
no setterinherited
id String
The ID of the Source.
getter/setter pairinherited
prefetchZoomDelta Future<double?>
When loading a map, if PrefetchZoomDelta is set to any number greater than 0, the map will first request a tile at zoom level lower than zoom - delta, but so that the zoom level is multiple of delta, in an attempt to display a full map at lower resolution as quick as possible. It will get clamped at the tile source minimum zoom. The default delta is 4.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
url Future<String?>
URL that points to an image. If the URL is not specified, the image is expected to be loaded directly during runtime.
no setter

Methods

bind(StyleManager style) → void
inherited
getType() String
Get the type of the current source as a String.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited
updateImage(MbxImage image) Future<void>?
Updates the image of an image style source.

Operators

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