AGSWebMapLayerInfo Class Reference


Description

Instances of this class represent information about top-level layers (such as map service layer, bing maps layer, openstreetmap layer, feature layer, feature collection, wms layer, etc) in the web map.

Since:
2.2
Inheritance diagram for AGSWebMapLayerInfo:
<AGSCoding>

List of all members.

Public Member Functions

(void) - decodeWithJSON:
(NSDictionary *) - encodeToJSON
(id) - initWithJSON:

Properties

AGSWebMapFeatureCollectionfeatureCollection
BOOL isReference
NSString * itemId
NSDictionary * layerDefinition
NSString * layerId
NSArray * layers
NSString * layerType
NSInteger mode
float opacity
AGSPopupInfopopupInfo
NSString * title
NSURL * URL
BOOL visibility
NSArray * visibleLayers

Member Function Documentation

- (void) decodeWithJSON: (NSDictionary *)  json   [optional, inherited]

Decode object from JSON representation.

Parameters:
json The JSON representation of the object to be decoded.
Since:
1.0
- (NSDictionary *) encodeToJSON   [optional, inherited]

Encode and return JSON representation for object.

Returns:
JSON representation of object.
Since:
1.0
- (id) initWithJSON: (NSDictionary *)  json   [optional, inherited]

Initialize and return object from JSON representation.

Parameters:
json The JSON representation of the object to be created.
Returns:
Object decoded from JSON representation.
Since:
1.0

Reimplemented in AGSWebMapFeatureCollection.


Property Documentation

- (AGSWebMapFeatureCollection*) featureCollection [read, retain]

Only applicable if the layer is a feature collection. A feature collection is a representation of one or more feature layers, where each layer contains the definition of that layer and the features that belong to that layer.

Since:
2.2
- (BOOL) isReference [read, assign]

If YES, then the layer should be drawn on top of all other layers in the web map. Else, it should be drawn based on the order it was stored in the web map. This property only applies to basemap layers, not to operational layers.

Since:
2.2
- (NSString*) itemId [read, retain]

The id of an item containing default information for the layer. The item resides on the same portal as the webmap.

Since:
2.2
- (NSDictionary*) layerDefinition [read, retain]

Only applicable if the layer is a feature layer. This is the JSON returned by a Map or Feature Service for one of its layers, for example, http://sampleserver3.arcgisonline.com/ArcGIS/rest/services/SanFrancisco/311Incidents/FeatureServer/0?f=pjson.

Since:
2.2
- (NSString*) layerId [read, retain]

The id of the layer in the webmap.

Since:
2.2
- (NSArray*) layers [read, retain]

An array of AGSWebMapSubLayerInfo objects representing the sublayers of the layer. For example, if the layer is based on an ArcGIS map service. Each sublayer will have an id and optionally a popup definition.

Since:
2.2
- (NSString*) layerType [read, retain]

The type of the layer. For example, OpenStreetMap, BingMapsAerial, BingMapsRoad, BingMapsHybrid, WMS, CSV, etc

Since:
2.2
- (NSInteger) mode [read, assign]

Only applies if the layer is a feature layer. A value of 0 implies AGSFeatureLayerModeSnapshot, 1 implies AGSFeatureLayerModeOnDemand, and 2 implies AGSFeatureLayerModeSelection.

Since:
2.2
- (float) opacity [read, assign]

If the value is 1, the layer is fully opaque. If 0, the layer is fully transparent.

Since:
2.2
- (AGSPopupInfo*) popupInfo [read, retain]

A popup definition for the layer.

Since:
2.2
- (NSString*) title [read, retain]

The title of the layer in the webmap.

Since:
2.2
- (NSURL*) URL [read, retain]

URL of the layer's backing service.

Since:
2.2
- (BOOL) visibility [read, assign]

Whether the layer is visible or not.

Since:
2.2
- (NSArray*) visibleLayers [read, retain]

An array of sub-layer ids that should be visible

Since:
2.2