public static class MapWidget.Options
extends com.google.gwt.core.client.JavaScriptObject
Modifier and Type | Class and Description |
---|---|
static class |
MapWidget.Options.SliderPosition |
static class |
MapWidget.Options.SliderStyle |
Modifier and Type | Method and Description |
---|---|
static MapWidget.Options |
create() |
static MapWidget.Options |
create(MapWidget.BaseMap basmap) |
void |
fitExtent(boolean fitExtent)
When true, for maps that contain tiled map service layers, you are guaranteed
to have the initial extent defined using the extent constructor option shown
completely on the map.
|
void |
setBaseMap(MapWidget.BaseMap basemap) |
void |
setDisplayGraphicsOnPan(boolean displayGraphics)
When true, graphics are displayed during panning.
|
void |
setExtent(Extent extent)
If provided, the extent and projection of the map is set to the properties of
Extent.
|
void |
setFadeOnZoom(boolean fadeOnZoom)
When true a fade effect is enabled for supported layers.
|
void |
setForce3DTransforms(boolean force3DTransforms)
When the mapNavigation mode is set to 'css-transforms', CSS3 transforms will be used for map navigation
when supported by the browser.
|
void |
setInfoWindow(InfoWindowBase infoWindow)
By default the map creates and uses an out-of-the-box InfoWindow.
|
void |
setLods(LOD[] lods)
If provided, the map is initialized with the specified levels of detail.
|
void |
setLogo(boolean logo)
Display the esri logo on the map.
|
void |
setMaxScale(double maxScale)
Maximum visible scale of the map.
|
void |
setMinScale(double minScale)
Minimum visible scale of the map.
|
void |
setNav(boolean nav)
Displays pan buttons on map.
|
void |
setNavigationMode(java.lang.String navigationMode)
Specify whether or not to use CSS3 transformations when panning and zooming.
|
void |
setResizeDelay(int resizeDelay)
Specify a time period in milliseconds to ignore repeated calls to the resize method.
|
void |
setShowAttribution(boolean attribution)
Enable or disable map attribution display.
|
void |
setSliderPosition(MapWidget.Options.SliderPosition position)
Position of the slider within the map control.
|
void |
setSliderStyle(MapWidget.Options.SliderStyle style)
Defines the slider style.
|
void |
showInfoWindowOnClick(boolean show)
The default behavior is to show an InfoWindow if the Graphic
has a defined InfoTemplate when the user clicks on the graphic.
|
void |
showSlider(boolean show)
Displays a slider on the map.
|
void |
wrapAround180(boolean wrap)
When true, supports continuous pan across the dateline.
|
public static MapWidget.Options create()
public static MapWidget.Options create(MapWidget.BaseMap basmap)
public final void setBaseMap(MapWidget.BaseMap basemap)
basemap
- public final void setDisplayGraphicsOnPan(boolean displayGraphics)
displayGraphics
- public final void setExtent(Extent extent)
extent
- public final void setFadeOnZoom(boolean fadeOnZoom)
fadeOnZoom
- - fade parameterpublic final void setForce3DTransforms(boolean force3DTransforms)
force3DTransforms
- public final void fitExtent(boolean fitExtent)
fitExtent
- public final void setInfoWindow(InfoWindowBase infoWindow)
infoWindow
- public final void setLods(LOD[] lods)
lods
- public final void setLogo(boolean logo)
logo
- public final void setMaxScale(double maxScale)
public final void setMinScale(double minScale)
public final void setNav(boolean nav)
nav
- public final void setNavigationMode(java.lang.String navigationMode)
navigationMode
- - values "css-transforms" or "classic"public final void setResizeDelay(int resizeDelay)
resizeDelay
- public final void setShowAttribution(boolean attribution)
attribution
- public final void showInfoWindowOnClick(boolean show)
show
- public final void showSlider(boolean show)
show
- public final void setSliderPosition(MapWidget.Options.SliderPosition position)
public final void setSliderStyle(MapWidget.Options.SliderStyle style)
public final void wrapAround180(boolean wrap)
wrap
-