public class

WebMapSubLayer

extends Object
java.lang.Object
   ↳ com.esri.core.portal.WebMapSubLayer

Class Overview

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

Summary

Public Methods
FeatureSet getFeatureSet()
Returns a 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, etc.
int getLayerId()
Returns the layer's ID.
String getLayerURL()
Returns the URL of the layer's backing service.
String getLegendURL()
Returns the legend URL, null if it does not exist.
String getName()
Gets the name.
String getTitle()
Gets the title.
WebMapPopupInfo getWebMapPopupInfo()
Returns WebMapPopupInfo object defined for the layer.
boolean isShowLegend()
Returns true if the legend needs to be shown.
void setName(String name)
Sets the name.
void setTitle(String title)
Sets the title.
[Expand]
Inherited Methods
From class java.lang.Object

Public Methods

public FeatureSet getFeatureSet ()

Returns a FeatureSet containing features to be displayed by this layer. Only applicable if the layer is part of a FeatureCollection

Returns
FeatureSet a feature set

public String getLayerDefinition ()

Returns the JSON representation of the layer's properties, which includes drawing information, fields, etc.

Returns
String the layer's properties in a JSON string

public int getLayerId ()

Returns the layer's ID.

Returns
int the layer ID

public String getLayerURL ()

Returns the URL of the layer's backing service. The URL can be used to do the query for the popup.

Returns
String URL of layer's backing service

public String getLegendURL ()

Returns the legend URL, null if it does not exist.

Returns
String the legend URL

public String getName ()

Gets the name.

Returns
String the name

public String getTitle ()

Gets the title.

Returns
String the title

public WebMapPopupInfo getWebMapPopupInfo ()

Returns WebMapPopupInfo object defined for the layer.

Returns
WebMapPopupInfo WebMapPopupInfo object

public boolean isShowLegend ()

Returns true if the legend needs to be shown.

Returns
boolean true if the legend needs to be shown

public void setName (String name)

Sets the name.

Parameters
name String: the name

public void setTitle (String title)

Sets the title.

Parameters
title String: the title