com.esri.core.portal
Class WebMapSubLayer

java.lang.Object
  extended by com.esri.core.portal.WebMapSubLayer

public class WebMapSubLayer
extends Object

This class represents a sub-layer of a higher level layer within a WebMap. The sub-layer may be an individual layer belonging to an FeatureCollection, or a sub-layer of a map service layer.

Version:
10.1.1

Method Summary
 FeatureSet getFeatureSet()
          Returns FeatureSet containing features to be displayed by this layer.
 String getLayerDefinition()
          Returns the JSON representation of the layer's properties, which includes drawing information, fields and etc.
 int getLayerId()
          Returns layer's ID.
 String getLayerURL()
          Returns URL of the layer's backing service.
 String getLegendURL()
          Returns legend URL, null if it does not exists.
 String getName()
          Gets the name.
 String getTitle()
          Gets the title.
 WebMapPopupInfo getWebMapPopupInfo()
          Returns PopupInfo object defined for the layer.
 boolean isShowLegend()
          Returns true if legend needs to be shown.
 void setName(String name)
          Sets the name.
 void setTitle(String title)
          Sets the title.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getTitle

public String getTitle()
Gets the title.

Returns:
the title
Since:
10.1.1

setTitle

public void setTitle(String title)
Sets the title.

Parameters:
title - the title
Since:
10.1.1

getName

public String getName()
Gets the name.

Returns:
the name
Since:
10.1.1

setName

public void setName(String name)
Sets the name.

Parameters:
name - the name
Since:
10.1.1

getLayerDefinition

public String getLayerDefinition()
Returns the JSON representation of the layer's properties, which includes drawing information, fields and etc.

Returns:
layer's properties in JSON string
Since:
10.1.1

getFeatureSet

public FeatureSet getFeatureSet()
Returns FeatureSet containing features to be displayed by this layer. Only applicable if the layer is part of FeatureCollection

Returns:
a feature set.
Since:
10.1.1

getLayerId

public int getLayerId()
Returns layer's ID.

Returns:
layer ID.
Since:
10.1.1

getLayerURL

public String getLayerURL()
Returns URL of the layer's backing service. The URL can be used to do the query for the Popup.

Returns:
URL of layer's backing service.
Since:
10.1.1

getWebMapPopupInfo

public WebMapPopupInfo getWebMapPopupInfo()
Returns PopupInfo object defined for the layer.

Returns:
PopupInfo object.
Since:
10.1.1

isShowLegend

public boolean isShowLegend()
Returns true if legend needs to be shown.

Returns:
true if legend needs to be shown.
Since:
10.1.1

getLegendURL

public String getLegendURL()
Returns legend URL, null if it does not exists.

Returns:
the legend url
Since:
10.1.1


Copyright © 2012. All Rights Reserved.