java.lang.Object | |
↳ | com.esri.core.portal.WebMapLayer |
This class represents an operational layer within a WebMap.
Nested Classes | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
enum | WebMapLayer.Mode | The operational mode of an ArcGIS Feature layer. | |||||||||
enum | WebMapLayer.Type | The type of layer in a WebMap. |
Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
public boolean | _isBaseLayer |
Protected Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
WebMapLayer()
Constructs an empty WebMapLayer.
| |||||||||||
WebMapLayer(String title, String url)
Constructs a WebMapLayer with the specified title and the URL.
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
String |
fetchOwningSystemURL()
Gets the OwingSystemURL of the layer.
| ||||||||||
int[] |
getBandIds()
The list of band ids.
| ||||||||||
String |
getCapabilitiesOverride()
Gets the capabilities override.
| ||||||||||
String |
getColumnDelimiter()
Gets the column delimiter.
| ||||||||||
String |
getCopyright()
Gets the copyright.
| ||||||||||
int[] |
getDisplayLevels()
The list of display levels.
| ||||||||||
Envelope |
getExtent()
Gets the extent.
| ||||||||||
FeatureCollection |
getFeatureCollection()
Gets the feature collection.
| ||||||||||
String |
getFormat()
Gets the format.
| ||||||||||
String |
getID()
Gets the id.
| ||||||||||
int[] |
getInvisibleLegendLayers()
Returns a list of ID number whose legend is not shown.
| ||||||||||
String |
getItemId()
Returns the Item id of the data represented by this operational layer in the WebMap.
| ||||||||||
String |
getLatitudeFieldName()
Gets the latitude field name.
| ||||||||||
String |
getLayerDefinitionOverride()
Gets the layer definition override.
| ||||||||||
ArrayList<String> |
getLayerDefinitions()
Returns the layer definitions of a feature collection.
| ||||||||||
List<WebMapSubLayer> |
getLayers()
Returns a list of
WebMapSubLayer objects which represents the sub-layers of this layer. | ||||||||||
String |
getLocationType()
Gets the location type.
| ||||||||||
String |
getLongitudeFieldName()
Gets the longitude field name.
| ||||||||||
String |
getMapUrl()
Map URL string for WMS service.
| ||||||||||
double |
getMaxScale()
Returns the maximum scale.
| ||||||||||
double |
getMinScale()
Returns the minimum scale.
| ||||||||||
WebMapLayer.Mode |
getMode()
Returns the mode that an ArcGIS Feature Layer is configured to work in.
| ||||||||||
float |
getOpacity()
Returns the opacity for this layer specified in the WebMap.
| ||||||||||
List<SpatialReference> |
getSpatialRefs()
Gets the spatial refs.
| ||||||||||
String |
getTitle()
Returns the title of this operational layer.
| ||||||||||
WebMapLayer.Type |
getType()
Returns the type of this Web Map layer.
| ||||||||||
String |
getUrl()
Returns the URL of a GIS Service layer.
| ||||||||||
int[] |
getVisibleFolders()
Gets the visible folder's ids.
| ||||||||||
int[] |
getVisibleLayers()
The list of visible layers.
| ||||||||||
WebMapPopupInfo |
getWebMapPopupInfo()
Gets the PopupInfo object.
| ||||||||||
String |
getWmsVersion()
Gets the wms version.
| ||||||||||
List<String> |
getWmsVisibleLayers()
The list of visible WMS layers.
| ||||||||||
boolean |
hasSubLayerIds()
This method is deprecated.
No replacement.
| ||||||||||
boolean |
isFeatureCollection()
This method is deprecated.
No replacement.
| ||||||||||
boolean |
isReference()
Tells if this layer is a reference layer.
| ||||||||||
boolean |
isShowLegend()
Indicates whether the webmap should show the features from this service in the legend.
| ||||||||||
boolean |
isVisible()
Returns the default visibility of this layer
|
Protected Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
static WebMapLayer |
fromJson(JsonParser parser)
Constructs and sets the internal state of this WebMapLayer from a response received from the server.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() |
Constructs an empty WebMapLayer. Users will never explicitly create an instance of a WebMapLayer.
Constructs a WebMapLayer with the specified title and the URL. This constructor is invoked when a Web Map does not contain any layers and the base layer is specified in the Item info
Gets the OwingSystemURL of the layer.
Exception | if the action can not be completed. |
---|
The list of band ids. This property is applicable only when the URL obtained through getUrl()
represents
an Image Service Layer.
Gets the capabilities override.
The list of display levels. This property is applicable only when the URL obtained through getUrl()
represents a Tiled Map Service Layer.
Gets the feature collection.
Returns a list of ID number whose legend is not shown.
Returns the Item id of the data represented by this operational layer in the WebMap.
Gets the layer definition override.
Returns the layer definitions of a feature collection.
Returns a list of WebMapSubLayer
objects which represents the sub-layers of this layer. For example, if the
layer is the tiled map service layer, a sub-layer may have a layer ID, an optional Popup information. If the layer
is a feature collection, a sub-layer may have a layer ID, layer definition and feature set.
Gets the longitude field name.
Returns the maximum scale.
Returns the minimum scale.
Returns the mode that an ArcGIS Feature Layer is configured to work in.
WebMapLayer.Mode
Returns the opacity for this layer specified in the WebMap.
Returns the type of this Web Map layer.
WebMapLayer.Type
Returns the URL of a GIS Service layer. It is the responsibility of the application to infer the type of service (Dynamic Map Service layer, Tiled Map Service layer, etc) the URL represents. If the Service is either BingMaps or OpenStreetMap then the Url string is the name of the layer.
Gets the visible folder's ids. Only applicable to the KML Layer type.
The list of visible layers. This property is applicable only when the URL obtained through getUrl()
represents a Dynamic Map Service Layer.
Gets the PopupInfo object. Only applicable to feature layer.
The list of visible WMS layers. The getLayers()
method returns all layers regardless of visibility. Use
this method to get a list of the layers that are initially visible. If this returns null then all of the layers
will be visible.
This method is deprecated.
No replacement.
Returns true if the layer specified the sub-layer ids.
This method is deprecated.
No replacement.
Tells if this layer is a feature collection.
Tells if this layer is a reference layer. This property is applicable only to base map layers within a WebMap
Indicates whether the webmap should show the features from this service in the legend.
Returns the default visibility of this layer
Constructs and sets the internal state of this WebMapLayer from a response received from the server.
PortalException | if the action can not be completed. |
---|