public class WMSLayer extends DynamicMapServiceLayer
Modifier and Type | Class and Description |
---|---|
static class |
WMSLayer.Options |
static class |
WMSLayer.ResourceInfo
An optional resource info object.
|
Modifier and Type | Method and Description |
---|---|
static boolean |
assertLoaded()
Check that the esri.layers.WMSLayer package has been loaded
|
static WMSLayer |
create(java.lang.String url)
Creates a new WMSLayer object.
|
static WMSLayer |
create(java.lang.String url,
WMSLayer.Options options)
Creates a new WMSLayer object.
|
java.lang.String |
getCopyright()
Copyright of the WMS service.
|
java.lang.String |
getDescription()
Description of the WMS service.
|
Extent |
getExtent()
Extent of the WMS service.
|
java.lang.String |
getGetMapUrl()
The URL for the WMS GetMap call.
|
java.lang.String |
getImageFormat()
The map image format.
|
com.google.gwt.core.client.JsArray<WMSLayerInfo> |
getLayerInfos()
List of layers in the WMS service.
|
int |
getMaxHeight()
Maximum height in pixels the WMS service supports.
|
int |
getMaxWidth()
Maximum width in pixels the WMS service supports.
|
java.lang.String |
getTitle()
Title of the WMS service.
|
java.lang.String |
getVersion()
Version of the WMS service.
|
void |
setImageFormat(java.lang.String format)
Set the map image format, valid values are "png","jpg","pdf","bmp","gif" and "svg".
|
void |
setImageTransparency(boolean transparency)
Specify whether the background image is transparent.
|
void |
setVisibleLayer(java.lang.String[] layers)
Specify a list of layer names to updates the visible layers.
|
getFullExtent, getImageUrl, getInitialExtent, getSpatialReference, refresh
addErrorHandler, addLoadHandler, addOpacityChangeHandler, addUpdateEndHandler, addUpdateHandler, addUpdateStartHandler, addVisibilityChangeHandler, getCredential, getId, getOpacity, getUrl, hide, isloaded, isVisible, setOpacity, setVisibility, show
public static WMSLayer create(java.lang.String url)
url
- - URL to the OGC Web Map Service.public static WMSLayer create(java.lang.String url, WMSLayer.Options options)
url
- - URL to the OGC Web Map Service.options
- - Optional parameters.public static boolean assertLoaded()
public final java.lang.String getCopyright()
public final java.lang.String getDescription()
public final Extent getExtent()
public final java.lang.String getGetMapUrl()
public final java.lang.String getImageFormat()
public final com.google.gwt.core.client.JsArray<WMSLayerInfo> getLayerInfos()
public final int getMaxHeight()
public final int getMaxWidth()
public final java.lang.String getTitle()
public final java.lang.String getVersion()
public final void setImageFormat(java.lang.String format)
format
- - The image format.public final void setImageTransparency(boolean transparency)
transparency
- - When true the background image is transparent.public final void setVisibleLayer(java.lang.String[] layers)
layers
- - An array of layer ids.