|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.esri.map.Layer com.esri.map.DynamicLayer com.esri.map.WmsDynamicMapServiceLayer
public class WmsDynamicMapServiceLayer
The Class WmsDynamicMapServiceLayer.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class com.esri.map.Layer |
---|
Layer.LayerStatus |
Field Summary | |
---|---|
protected SpatialReference[] |
supportedSRs
|
Fields inherited from class com.esri.map.DynamicLayer |
---|
_nativeCreateSpatialRef |
Fields inherited from class com.esri.map.Layer |
---|
_credentials, _progress, _resolutionList, serviceInfo |
Constructor Summary | |
---|---|
WmsDynamicMapServiceLayer(String url)
This constructor is used if you're instantiating the WMSLayer using a URL. |
|
WmsDynamicMapServiceLayer(String url,
boolean checkSupportedSRs)
This constructor is used if you're instantiating the WMSLayer using a URL and checkSupportedSRs flag. |
|
WmsDynamicMapServiceLayer(String url,
List<String> initialLayers,
List<String> initialStyles)
Deprecated. |
|
WmsDynamicMapServiceLayer(String url,
SpatialReference sr)
This constructor is used if you're instantiating the WMSLayer using a URL and default spatial reference. |
|
WmsDynamicMapServiceLayer(String url,
SpatialReference sr,
boolean checkSupportedSRs,
String[] visibleLayers,
UserCredentials credentials)
This constructor is used if you're instantiating the WMSLayer using a URL, default spatial reference, checkSupportedSRs flag, visible layer names, user credential and initLayer flag. |
|
WmsDynamicMapServiceLayer(String url,
String[] visibleLayers)
This constructor is used if you're instantiating the WMSLayer using a URL and visible layer names. |
Method Summary | |
---|---|
protected void |
createNativeLayer()
|
String |
getImageFormat()
Returns the image format. |
WmsLayerInfo[] |
getLayers()
Gets all layer information available in the service. |
LayerLegendInfoCollection |
getLegend()
|
String[] |
getSupportedImageFormats()
Gets the supported image formats. |
SpatialReference[] |
getSupportedSpatialReferences()
Gets supported spatial references. |
String |
getVersion()
Gets the WMS service's version. |
String[] |
getVisibleLayers()
Gets visible layer names. |
protected void |
init(boolean isVisible,
int[] visibleLayers,
String title,
float opacity)
This method is called only when composing a Map from a Web Map. |
protected void |
initializeNativeLayer()
|
protected void |
internalInit()
|
boolean |
isTransparent()
True if the image background is transparent. |
void |
setImageFormat(String format)
Sets the image format as a string('image/png', etc.). |
void |
setTransparent(boolean transparent)
Sets the image background to be transparent or not. |
void |
setVisibleLayers(String[] layerNames)
Sets visible layers by specifying the layer names. |
protected void |
updateSpatialReferenceStatus(int SRStatus)
|
Methods inherited from class com.esri.map.DynamicLayer |
---|
getCenterMeridian, getDefaultSpatialReference, getResolution, isCrossesDateline, refresh, requestImage, setUrl, startlisteningToMapEvents, stopListeningToMapEvents |
Methods inherited from class java.lang.Object |
---|
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected SpatialReference[] supportedSRs
Constructor Detail |
---|
public WmsDynamicMapServiceLayer(String url)
url
- URL string to the WMS layer.public WmsDynamicMapServiceLayer(String url, String[] visibleLayers)
url
- URL string to the WMS layer.visibleLayers
- names of sub-layers to be included in the image rendered(EPSG:3857, etc.).public WmsDynamicMapServiceLayer(String url, SpatialReference sr)
url
- URL string to the WMS layer.sr
- default spatial reference of the layer.public WmsDynamicMapServiceLayer(String url, boolean checkSupportedSRs)
url
- URL string to the WMS layer.checkSupportedSRs
- a flag which indicate to check if map's spatial reference is in the WMSLayer's supported
spatial reference list or not.public WmsDynamicMapServiceLayer(String url, SpatialReference sr, boolean checkSupportedSRs, String[] visibleLayers, UserCredentials credentials)
url
- URL string to the WMS layer.sr
- default spatial reference.checkSupportedSRs
- true if map's spatial reference is checked against spatial reference list supported by the
WMS service when layer is added into map.visibleLayers
- names of sub-layers to be included in the image rendered.credentials
- user credential@Deprecated public WmsDynamicMapServiceLayer(String url, List<String> initialLayers, List<String> initialStyles)
url
- the URLinitialLayers
- the subset of layers from the service to displayinitialStyles
- the style of each of the initial layersMethod Detail |
---|
public WmsLayerInfo[] getLayers()
public String[] getVisibleLayers()
public void setVisibleLayers(String[] layerNames)
layerNames
- visible layer name array.public String[] getSupportedImageFormats()
public SpatialReference[] getSupportedSpatialReferences()
public void setImageFormat(String format)
format
- image format in string.public boolean isTransparent()
public void setTransparent(boolean transparent)
transparent
- true if image background is set to transparent.public String getImageFormat()
public String getVersion()
protected void updateSpatialReferenceStatus(int SRStatus)
updateSpatialReferenceStatus
in class Layer
protected void internalInit()
internalInit
in class Layer
protected void createNativeLayer()
createNativeLayer
in class DynamicLayer
protected void initializeNativeLayer()
initializeNativeLayer
in class DynamicLayer
protected void init(boolean isVisible, int[] visibleLayers, String title, float opacity)
Layer
init
in class Layer
public LayerLegendInfoCollection getLegend()
getLegend
in class Layer
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |