|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.esri.core.portal.WebMapLayer
public class WebMapLayer
This class represents an operational layer within a WebMap.
Nested Class Summary | |
---|---|
static class |
WebMapLayer.Mode
The operational mode of an ArcGIS Feature layer. |
static class |
WebMapLayer.Type
The type of layer in a WebMap. |
Field Summary | |
---|---|
boolean |
_isBaseLayer
|
Constructor Summary | |
---|---|
protected |
WebMapLayer()
Constructs an empty WebMapLayer. |
protected |
WebMapLayer(String title,
String url)
Constructs a WebMapLayer with the specified title and the URL. |
Method Summary | |
---|---|
String |
fetchOwningSystemURL()
Gets the OwingSystemURL of the layer. |
protected static WebMapLayer |
fromJson(org.codehaus.jackson.JsonParser parser)
Constructs and sets the internal state of this WebMapLayer from a response received from the server. |
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()
Deprecated. |
boolean |
isFeatureCollection()
Deprecated. |
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 |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public boolean _isBaseLayer
Constructor Detail |
---|
protected WebMapLayer()
protected WebMapLayer(String title, String url)
title
- url
- Method Detail |
---|
public String getUrl()
public String getID()
public boolean isVisible()
public String getLayerDefinitionOverride()
public String getCapabilitiesOverride()
public float getOpacity()
public String getLocationType()
public String getLongitudeFieldName()
public WebMapPopupInfo getWebMapPopupInfo()
public String getLatitudeFieldName()
public String getColumnDelimiter()
public List<SpatialReference> getSpatialRefs()
public Envelope getExtent()
public String getCopyright()
public String getFormat()
public String getWmsVersion()
public String getMapUrl()
public List<String> getWmsVisibleLayers()
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.
public String getTitle()
public List<WebMapSubLayer> getLayers()
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.
public String getItemId()
public boolean isReference()
public int[] getVisibleLayers()
getUrl()
represents a Dynamic Map Service Layer.
public int[] getInvisibleLegendLayers()
public int[] getDisplayLevels()
getUrl()
represents a Tiled Map Service Layer.
public int[] getBandIds()
getUrl()
represents
an Image Service Layer.
public WebMapLayer.Mode getMode()
WebMapLayer.Mode
public WebMapLayer.Type getType()
WebMapLayer.Type
public boolean isFeatureCollection()
public FeatureCollection getFeatureCollection()
public double getMinScale()
public double getMaxScale()
public ArrayList<String> getLayerDefinitions()
public boolean hasSubLayerIds()
public boolean isShowLegend()
public int[] getVisibleFolders()
public String fetchOwningSystemURL() throws Exception
Exception
- if the action can not be completed.protected static WebMapLayer fromJson(org.codehaus.jackson.JsonParser parser) throws PortalException
parser
-
PortalException
- if the action can not be completed.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |