ArcGIS Runtime SDK for iOS: AGSWMSSublayer Class Reference
ArcGIS Runtime SDK for iOS  100.15
AGSWMSSublayer Class Reference

Description

Represents an individual layer in an OGC-WMS service.

An instance of this class represents an individual layer in an OGC-WMS service.

Since
100.2
Inheritance diagram for AGSWMSSublayer:
AGSObject <AGSLayerContent>

Instance Methods

(id< AGSCancelable >) - fetchLegendInfosWithCompletion:
 
(BOOL) - isVisibleAtScale:
 

Properties

BOOL canChangeVisibility
 
NSString * currentStyle
 
NSString * name
 
BOOL showInLegend
 
NSArray< id< AGSLayerContent > > * subLayerContents
 
void(^ subLayerContentsChangedHandler )(void)
 
AGSWMSLayerInfosublayerInfo
 
BOOL visible
 

Method Documentation

◆ fetchLegendInfosWithCompletion:

- (id<AGSCancelable>) fetchLegendInfosWithCompletion: (void(^)(NSArray< AGSLegendInfo * > *__nullable legendInfos, NSError *__nullable error))  completion

Fetches the array of legend infos (AGSLegendInfo) for this layer.

Since
100

◆ isVisibleAtScale:

- (BOOL) isVisibleAtScale: (double)  scale

Check whether this layer is visible at a given scale.

Since
100

Property Documentation

◆ canChangeVisibility

- (BOOL) canChangeVisibility
readrequirednonatomicassigninherited

Denotes whether the layer can change visibility or not.

Since
100

◆ currentStyle

- (NSString*) currentStyle
readwritenonatomiccopy

Name of the current style of this sublayer. Setting current style to an empty string indicates the default style will be used. For a list of available styles for this sublayer, refer to AGSWMSLayerInfo::styles.

Since
100.2

◆ name

- (NSString*) name
readnonatomiccopyinherited

The name of the layer.

Since
100

◆ showInLegend

- (BOOL) showInLegend
readwritenonatomicassigninherited

Indicates whether to show legend information.

Since
100

◆ subLayerContents

- (NSArray<id<AGSLayerContent> >*) subLayerContents
readnonatomiccopyinherited

This layer's sub-layers.

Since
100

◆ subLayerContentsChangedHandler

- (void(^ subLayerContentsChangedHandler) (void))
readwritenonatomiccopyinherited

Block that is invoked when the sub layer contents changes.

Note
The block will be invoked on the same thread on which the event occurred, which could be any arbitrary thread. You need to dispatch any UI related work to the main thread.
Since
100

◆ sublayerInfo

- (AGSWMSLayerInfo*) sublayerInfo
readnonatomicstrong

Metadata about the sublayer

Since
100.2

◆ visible

- (BOOL) visible
readwritenonatomicassigninherited

Denotes whether the layer is visible or not. The visibility changes can be monitored using Key-Value Observing (KVO).

Since
100