Display layer view state

Description

This sample demonstrates how to get view status for layers in a map. The layer's view status could be

  • Active
  • Not Visible
  • Out of Scale
  • Loading
  • Error

The sample displays the list of operational layers in the map. Each row in this list also has the view status corresponding to that layer. If you pan or zoom the map, the view status of some layers may change.

Layer view state

How it works

AGSMapView has a block called layerViewStateChangedHandler that is executed every time a layer's view status changes. The block contains two attributes, namely, layer (the AGSLayer whose state got changed) and layerViewState object that defines the new state.


In this topic
  1. Description