|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.maryanovsky.map.client.widgets.overview.OverviewMapWidget.StandardSynchronization
public static class OverviewMapWidget.StandardSynchronization
The most commonly used implementation of OverviewMapWidget.Synchronization. It positions the overview map at the same location as the main map, zoomed out by the specified number of zooms.
| Constructor Summary | |
|---|---|
OverviewMapWidget.StandardSynchronization(double mainMapPortionThreshold,
boolean animate)
Creates a new StandardSynchronization. |
|
| Method Summary | |
|---|---|
MapLocationModel |
createOverviewLocationModel(MapWidget mapWidget)
Creates the MapLocationModel to be used for the overview
map widget. |
void |
moveBoth(MapWidget mainWidget,
OverviewMapWidget overviewWidget,
LatLng location)
Invoked to center both the main and the overview map widgets on the specified coordinate. |
void |
syncMain(MapWidget mainWidget,
OverviewMapWidget overviewWidget)
Invoked when the location of the overview map changes to apply these changes to the specified main map widget. |
void |
syncOverview(MapWidget mainWidget,
OverviewMapWidget overviewWidget)
Invoked when the location of the main map changes to apply these changes to the specified overview map widget. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public OverviewMapWidget.StandardSynchronization(double mainMapPortionThreshold,
boolean animate)
StandardSynchronization.
mainMapPortionThreshold - The maximum portion of the width and
height of the overview map that the area of the main map is to be
allowed to occupy (whenever possible). This determines the zoom at
which the overview map is displayed.animate - Whether to animate transitions on both maps. Note that
a true value is merely a suggestion - certain
transitions will not be animated regardless.| Method Detail |
|---|
public MapLocationModel createOverviewLocationModel(MapWidget mapWidget)
MapLocationModel to be used for the overview
map widget.
createOverviewLocationModel in interface OverviewMapWidget.Synchronization
public void syncMain(MapWidget mainWidget,
OverviewMapWidget overviewWidget)
syncMain in interface OverviewMapWidget.Synchronization
public void syncOverview(MapWidget mainWidget,
OverviewMapWidget overviewWidget)
syncOverview in interface OverviewMapWidget.Synchronization
public void moveBoth(MapWidget mainWidget,
OverviewMapWidget overviewWidget,
LatLng location)
moveBoth in interface OverviewMapWidget.Synchronization
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||