ArcGISMapImageSublayer class final
A sublayer of an ArcGIS map image layer.
ArcGISMapImageSublayer provides access to layers that comprise an ArcGISMapImageLayer. Once the ArcGISMapImageLayer has loaded, you can obtain its map image sublayers from the ArcGISMapImageLayer.arcGISMapImageSublayers collection. You can obtain the ArcGIS map service information for each of these sublayers from the ArcGISSublayer.arcGISMapServiceSublayerInfo.
If one of the sublayers is a group layer (where the ArcGISMapServiceSublayerInfo.sublayerType is ArcGISMapServiceSublayerType.groupLayer), it will also have a collection of sublayers. Use ArcGISSublayer.sublayers to obtain the collection of sublayers. If one of these sublayers is a group layer it will also contain a collection of sublayers, and so on.
If you know the sublayer Id, you can create it from the
ArcGISMapImageSublayer.new
constructor.
Once you have obtained the sublayer, you can change the data that is displayed by the ArcGISMapImageLayer by setting the sublayer's visibility, layer definition expression, and other visual properties such as renderer and scale.
- Inheritance
-
- Object
- ArcGISSublayer
- ArcGISMapImageSublayer
Constructors
- ArcGISMapImageSublayer({required int id, SublayerSource? source})
-
Creates an ArcGIS map image sublayer with the specified sublayer id and a
source.
factory
Properties
- arcGISMapServiceSublayerInfo → ArcGISMapServiceSublayerInfo?
-
The sublayer's metadata.
no setterinherited
- canChangeVisibility → bool
-
A flag indicating whether the layer content's visibility can be changed.
no setterinherited
- defaultVisibility → bool
-
The sublayer's default visibility.
no setter
- definitionExpression ↔ String
-
A SQL statement where clause that stipulates a subset of features to be
displayed.
getter/setter pairinherited-getter
- hashCode → int
-
The hash code for this object.
no setterinherited
- id → int
-
The id that uniquely identifies this sublayer.
no setterinherited
- isVisible ↔ bool
-
The layer content's visibility.
getter/setter pairinherited
- labelsEnabled ↔ bool
-
True if the sublayer's labels are enabled, false otherwise.
getter/setter pairinherited-getter
- loadError → ArcGISException?
-
The load error.
no setterinherited
- loadStatus → LoadStatus
-
The load status.
no setterinherited
- maxScale ↔ double
-
The sublayer's maximum scale.
getter/setter pairinherited-getter
- minScale ↔ double
-
The sublayer's minimum scale.
getter/setter pairinherited-getter
- name ↔ String
-
The layer content's name.
getter/setter pairinherited-getter
-
onLoadStatusChanged
→ Stream<
LoadStatus> -
A stream that reports changes to the
LoadStatus
.no setterinherited -
onSubLayerContentChanged
→ Stream<
List< LayerContent> > -
Callback invoked when the sublayer content of the layer content have
changed.
no setterinherited
- opacity ↔ double
-
The sublayer's opacity.
getter/setter pairinherited-getter
- renderer ↔ Renderer?
-
The sublayer's renderer.
getter/setter pairinherited-getter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- scaleSymbols ↔ bool
-
True if the sublayer renderers its symbols based on scale, false
otherwise.
getter/setter pairinherited-getter
- showInLegend ↔ bool
-
A flag indicating whether the layer content participates in the legend.
getter/setter pairinherited
- source → SublayerSource?
-
The sublayer's source if available.
no setter
-
subLayerContents
→ List<
LayerContent> -
The sub layer contents of a layer content.
no setterinherited
-
sublayers
→ List<
ArcGISSublayer> -
The collection of sublayers of a sublayer.
no setterinherited
- table → ServiceFeatureTable?
-
The sublayer's feature table.
no setter
Methods
-
cancelLoad(
) → void -
Cancels loading metadata for the object.
inherited
-
clone(
) → ArcGISSublayer -
Clones the ArcGISSublayer.
inherited
-
fetchLegendInfos(
) → Future< List< LegendInfo> > -
Fetches the list of legend info.
inherited
-
fetchLegendInfosCancelable(
) → CancelableOperation< List< LegendInfo> > -
Cancelable version of fetchLegendInfos. See that method for more
information.
inherited
-
isVisibleAtScale(
double scale) → bool -
Returns the layer content's effective visibility at the specified scale.
inherited
-
load(
) → Future< void> -
Loads the metadata for the object asynchronously.
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
retryLoad(
) → Future< void> -
Loads or retries loading metadata for the object asynchronously.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited