public class

WMSLayerInfo

extends Object
java.lang.Object
   ↳ com.esri.android.map.ogc.WMSLayerInfo

Class Overview

This class represents a layer in a WMS map service.

Summary

Public Methods
boolean equals(Object obj)
Envelope getExtent()
Returns the extent of the layer.
String getLegendURL()
Returns legend URL in string.
String getName()
Gets the name of the layer.
SpatialReference getSpatialReference()
Returns default spatial reference of the layer.
List<WMSLayerInfo> getSubLayers()
Returns the immediate sub-layers.
String getTitle()
Gets the title of the layer.
int hashCode()
Bitmap retrieveLegendImage()
Synchronously retrieves the legend image from legend URL.
[Expand]
Inherited Methods
From class java.lang.Object

Public Methods

public boolean equals (Object obj)

public Envelope getExtent ()

Returns the extent of the layer.

Returns
  • the extent of the layer.

public String getLegendURL ()

Returns legend URL in string. Null if legend URL does not exist.

Returns
  • legend URL.

public String getName ()

Gets the name of the layer. If, and only if, a layer has a Name, then it is a map layer that can be requested by using that Name in the LAYERS parameter of a GetMap request. A Layer that contains a Name element is referred to as a "named layer" in this International Standard. If the layer has a Title but no Name, then that layer is only a category title for all the layers nested within.

Returns
  • the name of the layer.

public SpatialReference getSpatialReference ()

Returns default spatial reference of the layer.

Returns
  • default spatial reference.

public List<WMSLayerInfo> getSubLayers ()

Returns the immediate sub-layers.

Returns
  • Returns the layers.

public String getTitle ()

Gets the title of the layer. A Title is mandatory for all layers; it is a human-readable string for presentation in a menu. The Title is not inherited by child Layers.

Returns
  • the title of the layer.

public int hashCode ()

public Bitmap retrieveLegendImage ()

Synchronously retrieves the legend image from legend URL. This is a network call and users are responsible to call it in non-UI thread.

Returns
  • Bitmap instance if the legend image is successfully retrieved.