public static class WMSLayer.Options
extends com.google.gwt.core.client.JavaScriptObject
Modifier and Type | Method and Description |
---|---|
static WMSLayer.Options |
create() |
void |
setFormat(java.lang.String format) |
void |
setResourceInfo(WMSLayer.ResourceInfo resourceInfo) |
void |
setTransparent(boolean transparent) |
void |
setVisibleLayers(java.lang.String[] visibleLayers) |
public static WMSLayer.Options create()
public final void setFormat(java.lang.String format)
format
- - Specify the map image format, valid options are png,jpg,bmp,gif,svg.public final void setResourceInfo(WMSLayer.ResourceInfo resourceInfo)
resourceInfo
- - An optional resource info object. The default behavior of a WMSLayer is to execute a WMS GetCapabilities
request, which requires using a proxy page. If resourceInfo is specified a GetCapabilities request is not executed and no proxy
page is required.public final void setTransparent(boolean transparent)
transparent
- - If the WMS service supports transparency, specify whether the image background is transparent.public final void setVisibleLayers(java.lang.String[] visibleLayers)
visibleLayers
- - A list of layer names that represent the layers to include in the exported map. By default no layers
are visible. The order of layers in the list defines the order the layers will display in the map.