ArcGIS Runtime SDK for iOS: <AGSLayerContent> Protocol Reference
ArcGIS Runtime SDK for iOS  100.5
<AGSLayerContent> Protocol Reference

Description

A protocol defining common properties and operations for layers

Since
100
Inheritance diagram for <AGSLayerContent>:
AGSArcGISSublayer AGSLayer AGSWMSSublayer AGSArcGISMapImageSublayer AGSArcGISTiledSublayer AGSAnnotationLayer AGSArcGISSceneLayer AGSArcGISVectorTiledLayer AGSENCLayer AGSFeatureCollectionLayer AGSFeatureLayer AGSGroupLayer AGSImageAdjustmentLayer AGSIntegratedMeshLayer AGSKMLLayer AGSMobileBasemapLayer AGSPointCloudLayer AGSUnknownLayer AGSUnsupportedLayer

Instance Methods

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

Properties

BOOL canChangeVisibility
 
NSString * name
 
BOOL showInLegend
 
NSArray< id< AGSLayerContent > > * subLayerContents
 
void(^ subLayerContentsChangedHandler )()
 
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
readrequirednonatomicassign

Denotes whether the layer can change visibility or not.

Since
100

§ name

- (NSString*) name
readnonatomiccopy

The name of the layer.

Since
100

§ showInLegend

- (BOOL) showInLegend
readwritenonatomicassign

Indicates whether to show legend information.

Since
100

§ subLayerContents

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

This layer's sub-layers.

Since
100

§ subLayerContentsChangedHandler

- (void(^ subLayerContentsChangedHandler) ())
readwritenonatomiccopy

Block that is invoked when the sub layer contents changes.

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

§ visible

- (BOOL) visible
readwritenonatomicassign

Denotes whether the layer is visible or not.

Since
100