public class Navigation
extends com.google.gwt.core.client.JavaScriptObject
Modifier and Type | Class and Description |
---|---|
static class |
Navigation.NavigationType |
Modifier and Type | Method and Description |
---|---|
void |
activate(Navigation.NavigationType navigationType)
Activates the toolbar for map navigation.
|
void |
addExtentHistoryChangeHandler(ExtentHistoryChangeHandler handler)
Add extent history change handler
|
static Navigation |
create(MapWidget map)
Creates a new Navigation object.
|
void |
deactivate()
Deactivates the toolbar and reactivates map navigation.
|
void |
isFirstExtent()
When "true", map is at the first extent.
|
void |
isLastExtent()
When "true", map is at the last extent.
|
void |
setZoomSymbol(Symbol symbol)
Set the SimpleFillSymbol used for the rubber band zoom.
|
void |
zoomToFullExtent()
Zoom to full extent of base layer.
|
void |
zoomToNextExtent()
Zoom to next extent in extent history.
|
void |
zoomToPrevExtent()
Zoom to previous extent in extent history.
|
public static Navigation create(MapWidget map)
map
- - Map the toolbar is associated with.public final void activate(Navigation.NavigationType navigationType)
navigationType
- - The navigation type.public final void deactivate()
public final void isFirstExtent()
public final void isLastExtent()
public final void setZoomSymbol(Symbol symbol)
symbol
- - The SimpleFillSymbol used for the rubber band zoom.public final void zoomToFullExtent()
public final void zoomToNextExtent()
public final void zoomToPrevExtent()
public final void addExtentHistoryChangeHandler(ExtentHistoryChangeHandler handler)
handler
- - Fires when the extent history changes.