Arc GISMap Image Sublayer
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.mapImageSublayers collection. You can obtain the ArcGIS map service information for each of these sublayers from the ArcGISSublayer.mapServiceSublayerInfo.
If one of the sublayers is a group layer (where the com.arcgismaps.arcgisservices.ArcGISMapServiceSublayerInfo.sublayerType is com.arcgismaps.arcgisservices.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.ArcGISMapImageSublayer 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.
Since
200.1.0
See also
(Long)
Constructors
Properties
The sublayer's default visibility. The sublayer default visibility. Will return false if an error occurs.
A SQL statement where clause that stipulates a subset of features to be displayed. The definition expression string uses the SQL-92 where clause syntax (https://en.wikipedia.org/wiki/SQL-92). Be sure to escape special characters in the expression string as required for your platform. The DATE keyword expects the date format yyyy-mm-dd and the TIMESTAMP keyword expects the time stamp format yyyy-mm-dd hh:mm:ss. For more information, see the ArcGIS Blog article Querying Feature Services Date-Time Queries.
A modifiable collection of label definitions for this sublayer. This is only available if the ArcGISMapImageLayer supports dynamic capabilities.
True if the sublayer's labels are enabled, false otherwise. Will return false if an error occurs.
True if the sublayer renderers its symbols based on scale, false otherwise. Will return false if an error occurs.
The sublayer's source if available.
The sublayer's feature table. This only applies to sublayers of type com.arcgismaps.arcgisservices.ArcGISMapServiceSublayerType.FeatureLayer or com.arcgismaps.arcgisservices.ArcGISMapServiceSublayerType.Table. This method returns null if the sublayer has not been loaded.
Inherited properties
A flag indicating whether the layer content's visibility can be changed. A flag indicating whether the layer content visibility can be changed. Will return false if an error occurs.
A flag indicating whether the PopupDefinition defined on the PopupSource is enable / disable. Will return false if an error occurs.
The load status.
The sublayer's metadata. The sublayer metadata once the sublayer is loaded. Will return null if an error occurs or if the sublayer is not loaded.
The pop-up definition. The PopupDefinition associated with the popup source. A null if an error occurs or if the popup source is not associated with a pop-up definition.
A flag indicating whether the layer content participates in the legend. A flag indicating whether the layer content is shown in the legend.
The sub layer contents of a layer content.
The collection of sublayers of a sublayer. This collection is usually empty unless the parent layer is loaded. Modifying this collection has no effect unless this sublayer is associated with an ArcGIS map service that supports dynamic layers. "Supports Dynamic Layers" must be set to true in the ArcGIS MapServer REST Services Directory.
Functions
Clones the ArcGISMapImageSublayer.
Inherited functions
Cancels loading metadata for the Loadable object.
Fetches the list of legend info.
Returns the layer content's effective visibility at the specified scale. Returns the effective layer content visibility. This effective visibility takes care of the effective visibility of the parents at the specified scale. Will return false if an error occurs.