AGSTiledLayerView Class Reference


Description

In a Model-View-Controller architecture, this object represents the View. When corresponding Model objects, subclasses of AGSTiledLayer, are added to the map, this view object is used internally to display maps from the cached map service.

This class extends UIView and implements the AGSLayerView protocol and the AGSTiledLayerTileDelegate protocol. You can change the transparency of the layer by modifying the alpha property.

Defined in:
AGSTiledLayerView.h ( ArcGIS library)
Since:
1.0
See also:
AGSTiledMapServiceLayer
Inheritance diagram for AGSTiledLayerView:
<AGSLayerView> <AGSTiledLayerTileDelegate> <AGSLayerDelegate>

List of all members.

Public Member Functions

(void) - clear
(void) - layer:didFailToLoadWithError:
(void) - layerDataChanged:
(void) - layerDidLoad:
(AGSEnvelope *) - mapFullEnvelope
(void) - mapIsPanning:
(void) - mapIsZooming:
(void) - mapPanned:
(void) - mapTimeExtentChanged:
(void) - mapZoomed:
(void) - tiledLayer:operationDidFailToGetTile:
(void) - tiledLayer:operationDidGetTile:

Properties

AGSLayeragsLayer
BOOL drawDuringPanning
BOOL drawDuringZooming
BOOL enableTileAnimation
NSError * error
BOOL limitMemoryUsage
AGSMapViewmapView
double maxResolution
double minResolution
NSString * name

Member Function Documentation

- (void) clear  

Method to clear the current layer view.

Since:
1.0
- (void) layer: (AGSLayer *)  layer
didFailToLoadWithError: (NSError *)  error 
[optional, inherited]

Tells the delegate that layer failed to load with the specified error.

Parameters:
layer The layer that failed to load.
error Information about the cause of the failure.
Since:
1.0
- (void) layerDataChanged: (AGSLayer *)  layer   [optional, inherited]

Tells the delegate that layer data has changed. The delegate may decide to refresh the UI.

Since:
1.0
- (void) layerDidLoad: (AGSLayer *)  layer   [optional, inherited]

Tells the delegate that layer is loaded and ready to use.

Parameters:
layer The layer that was loaded.
Since:
1.0
- (AGSEnvelope*) mapFullEnvelope   [required, inherited]

The layer can call this function on its delegate to find out what the full envelope of the map is.

Since:
1.0
- (void) mapIsPanning: (AGSLayerViewRequestParams *)  params  

Delegate method that is fired when the map starts to pan.

Parameters:
params The parameters of the layer view's current request.
Since:
1.0
- (void) mapIsZooming: (AGSLayerViewRequestParams *)  params  

Delegate method that is fired when the map begins to zoom.

Parameters:
params The parameters of the layer view's current request.
Since:
1.0
- (void) mapPanned: (AGSLayerViewRequestParams *)  params  

Delegate method that is fired when the map has finished panning.

Parameters:
params The parameters of the layer view's current request.
Since:
1.0
- (void) mapTimeExtentChanged: (AGSLayerViewRequestParams *)  params  

Delegate method that is fired when the map's time extent has been changed.

Parameters:
params The parameters of the layer view's current request.
Since:
1.0
- (void) mapZoomed: (AGSLayerViewRequestParams *)  params  

Delegate method that is fired when the map has finished zooming.

Parameters:
params The parameters of the layer view's current request.
Since:
1.0
- (void) tiledLayer: (AGSTiledLayer *)  layer
operationDidFailToGetTile: (NSOperation< AGSTileOperation > *)  op 
[optional, inherited]

Tells the delegate a tile was not retrieved.

Parameters:
layer The layer retrieving the tile.
op The operation that failed to retrieve tile.
Since:
1.0
- (void) tiledLayer: (AGSTiledLayer *)  layer
operationDidGetTile: (NSOperation< AGSTileOperation > *)  op 
[required, inherited]

Tells the delegate a tile was successfully retrieved.

Parameters:
layer The layer retrieving the tile.
op The operation that retrieved the tile.
Since:
1.0

Property Documentation

- (AGSLayer*) agsLayer [read, write, retain, inherited]

Layer being represented.

Since:
1.0
- (BOOL) drawDuringPanning [read, write, assign]

Flag to determine whether or not the layer should draw while the map is panning.

Since:
1.0

Reimplemented from <AGSLayerView>.

- (BOOL) drawDuringZooming [read, write, assign]

Flag to determine whether or not the layer should draw while the map is zooming.

Since:
1.0

Reimplemented from <AGSLayerView>.

- (BOOL) enableTileAnimation [read, write, assign]

Flag to determine whether or not tile animations should be enabled. If enabled, tiles will appear to fade in when they are retrieved.

Since:
1.0
- (NSError*) error [read, retain, inherited]

Latest error, if any. May be error returned by service or client.

Since:
1.0
- (BOOL) limitMemoryUsage [read, write, assign]

Flag to limit memory usage. This should be used when targeting older devices such the original iPhone or iPhone 3G.

Since:
1.0
- (AGSMapView*) mapView [read, write, assign, inherited]

Map view this layer view is contained in.

Since:
1.0
- (double) maxResolution [read, assign]

This is the maximum AGSMapView resolution (map units per point) that this layer renders at. This is a calculation determined by the tile-info's resolution of the first LOD, the layer's renderNativeResolution property and the scale of the screen.

Since:
2.1
- (double) minResolution [read, assign]

This is the minimum AGSMapView resolution (map units per point) that this layer renders at. This is a calculation determined by the tile-info's resolution of the last LOD, the layer's renderNativeResolution property and the scale of the screen.

Since:
2.1
- (NSString*) name [read, write, copy, inherited]

Name of the view.

Since:
1.0