java.lang.Object | |
↳ | com.esri.core.portal.WebMapSubLayer |
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.
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 | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() |
Returns FeatureSet
containing features to be displayed by this
layer. Only applicable if the layer is part of FeatureCollection
Returns the JSON representation of the layer's properties, which includes drawing information, fields and etc.
Returns layer's ID.
Returns URL of the layer's backing service. The URL can be used to do the query for the Popup.
Returns legend URL, null if it does not exists.
Returns PopupInfo
object defined for the layer.
Returns true if legend needs to be shown.