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 an FeatureCollection, or a sub-layer of a map service layer.

Summary

Public Methods
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.
[Expand]
Inherited Methods
From class java.lang.Object

Public Methods

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.

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

public int getLayerId ()

Returns layer's ID.

Returns
  • layer ID.

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.

public String getLegendURL ()

Returns legend URL, null if it does not exists.

Returns
  • the legend url

public String getName ()

Gets the name.

Returns
  • the name

public String getTitle ()

Gets the title.

Returns
  • the title

public WebMapPopupInfo getWebMapPopupInfo ()

Returns PopupInfo object defined for the layer.

Returns
  • PopupInfo object.

public boolean isShowLegend ()

Returns true if legend needs to be shown.

Returns
  • true if legend needs to be shown.

public void setName (String name)

Sets the name.

Parameters
name the name

public void setTitle (String title)

Sets the title.

Parameters
title the title