public static class BasemapLayer.Options
extends com.google.gwt.core.client.JavaScriptObject
Modifier and Type | Method and Description |
---|---|
static BasemapLayer.Options |
create() |
void |
isReference(boolean isReference) |
void |
setBandIds(int[] bandIds) |
void |
setDisplayLevels(int[] displayLevels) |
void |
setOpacity(double opacity)
Set the opacity
|
void |
setType(java.lang.String type) |
void |
setUrl(java.lang.String url) |
void |
setVisibleLayers(int[] visibleLayers) |
public static BasemapLayer.Options create()
public final void setBandIds(int[] bandIds)
bandIds
- - Optional. If the url points to an image service, you can specify which band ids will display. If
not set, the first three available band ids will display.public final void setDisplayLevels(int[] displayLevels)
displayLevels
- - Optional. If the url points to a cached map service you can specify the levels to draw. If
not set, all display levels the service supports are drawn.public final void isReference(boolean isReference)
isReference
- - Optional. Set to true if the layer is a reference layer and should be drawn on top of
all other layers in the map.public final void setOpacity(double opacity)
opacity
- - Initial opacity or transparency of the basemap layer. Values range from 0.0 to 1.0 where 0.0 is 100%
transparent and 1.0 has no transprency. The default value is 1.0.public final void setType(java.lang.String type)
type
- - The type of layer, valid values are "BingMapsAerial", "BingMapsHybrid", "BingMapsRoad",
"OpenStreetMap". Must specify either the url or type parameter.public final void setUrl(java.lang.String url)
url
- - URL to the ArcGIS Server REST resource that represents a map or image service. Must specify
either the url or type parameter.public final void setVisibleLayers(int[] visibleLayers)
visibleLayers
- - Optional. If the url points to a dynamic map service you can specify a subset of layers
to display. If not set, all visible layers are displayed.