public static class OverviewMap.Parameters
extends com.google.gwt.core.client.JavaScriptObject
Modifier and Type | Method and Description |
---|---|
static OverviewMap.Parameters |
create() |
void |
setAttachTo(java.lang.String attachTo) |
void |
setBaseLayer(Layer baseLayer) |
void |
setColor(java.lang.String color) |
void |
setExpandFactor(int expandFactor) |
void |
setHeight(int height) |
void |
setId(java.lang.String id) |
void |
setMap(MapWidget map) |
void |
setOpacity(float opacity) |
void |
setVisible(boolean visible) |
void |
setWidth(int width) |
void |
showMaximizeButton(boolean showButton) |
public static OverviewMap.Parameters create()
public final void setAttachTo(java.lang.String attachTo)
attachTo
- - Specifies which corner of the map to attach the
OverviewMap dijit. Valid values are: "top-right","bottom-right",
"bottom-left" and "top-left". The default value is "top-right".public final void setBaseLayer(Layer baseLayer)
baseLayer
- - Specify the base layer for the overview map. Note
that the specified layer must be loaded, verify this using the
layer's loaded property. If a base layer is not specified the dijit
will use a copy of the main map's base layer. Valid layers are
ArcGISDynamicMapServiceLayer,ArcGISTiledMapServiceLayer,
OpenStreetMapLayer and VETiledLayer.public final void setColor(java.lang.String color)
color
- - Fill color for the extent rectangle. The default value is #000000.public final void setExpandFactor(int expandFactor)
expandFactor
- - The ratio between the size of the overview map
and the extent rectangle displayed on the overview map. The default
value is 2, meaning the overview map will be at least twice the size
of the extent rectangle.public final void setHeight(int height)
height
- - Height of the overview map dijit in screen pixels. The
default value is 1/4th the height of the map.public final void setId(java.lang.String id)
id
- - Unique identifier for the dijit. If specified this can be
used with dijit.byId to get a reference to the dijit, or with
dojo.byId to get a reference to the DOM node associated with the
dijit.public final void setMap(MapWidget map)
map
- - Reference to the map. The map parameter is required.public final void showMaximizeButton(boolean showButton)
showButton
- - Defines the visibility of the maximize/restore button
When true, the button is visible. The default value is false.public final void setOpacity(float opacity)
opacity
- - Opacity of the extent rectangle, defined as a number
between 0 (invisible) and 1 (opaque). The default value is 0.5.public final void setVisible(boolean visible)
visible
- - Specifies the initial visibility of the overview map.
The default value is false.public final void setWidth(int width)
width
- - Width of the overview map dijit in screen pixels. The
default value is 1/4th the width of the map.