DataSourceLayer class abstract

Implemented types

Constructors

DataSourceLayer()

Properties

active bool
Manages visibility of the layer.
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

clear() → void
Clears all cached tiles and starts new requests for tiles that are displayed.
isValid() bool
Usable only in runWithBlockUi or listener handlers.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
remove() → void
Removes the data source layer from the parent layer. The object becomes invalid after that.
resetStyles() → void
Resets all JSON style transformations applied to the layer.
setDataSourceListener(DataSourceListener? dataSourceListener) → void
Sets data source listener. Use it to invalidate data source. Temporary solution until https://st.yandex-team.ru/MAPSMOBCORE-20531 is done
setLayerLoadedListener(LayerLoadedListener? layerLoadedListener) → void
Sets layer loaded listener.
setStyle({required int id, required String style}) bool
Applies JSON style transformation to the layer. Replaces previous styling with the specified ID (if such exists). Stylings are applied in an ascending order. Set to empty string to clear previous styling with the specified ID. Returns true if the style was successfully parsed and false otherwise. If the returned value is false, the current style remains unchanged.
toString() String
A string representation of this object.
inherited

Operators

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