|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.google.gwt.maps.client.overlay.Overlay
public abstract class Overlay
The base class for adding objects at a specific position on top of the map.
| Nested Class Summary | |
|---|---|
static class |
Overlay.ConcreteOverlay
This class is used to wrap Overlays written entirely in JavaScript. |
| Field Summary | |
|---|---|
protected com.google.gwt.core.client.JavaScriptObject |
jsoPeer
|
| Constructor Summary | |
|---|---|
|
Overlay()
|
protected |
Overlay(com.google.gwt.core.client.JavaScriptObject jsoPeer)
|
| Method Summary | |
|---|---|
protected abstract Overlay |
copy()
Returns an uninitialized copy of itself that can be added to the map. |
static Overlay |
createPeer(com.google.gwt.core.client.JavaScriptObject jsoPeer)
Used to create a new Overlay by wrapping an existing GOverlay object. |
static int |
getZIndex(double latitude)
Returns a CSS z-index value for a given latitude. |
protected abstract void |
initialize(MapWidget map)
Called by the map after the overlay is added to the map using MapWidget.addOverlay(Overlay). |
protected abstract void |
redraw(boolean force)
Called by the map when the map display has changed. |
protected abstract void |
remove()
Called by the map after the overlay is removed from the map using MapWidget.removeOverlay(Overlay) or
MapWidget.clearOverlays(). |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected final com.google.gwt.core.client.JavaScriptObject jsoPeer
| Constructor Detail |
|---|
public Overlay()
protected Overlay(com.google.gwt.core.client.JavaScriptObject jsoPeer)
| Method Detail |
|---|
public static Overlay createPeer(com.google.gwt.core.client.JavaScriptObject jsoPeer)
jsoPeer - GOverlay object to wrap.
public static int getZIndex(double latitude)
latitude - the latitude to retrieve the marker z-index for.
@Exported protected abstract Overlay copy()
@Exported protected abstract void initialize(MapWidget map)
MapWidget.addOverlay(Overlay). The overlay object can draw itself
into the different panes of the map that can be obtained using
MapWidget.getPane(com.google.gwt.maps.client.MapPaneType).
map - The map this overlay has been added to.@Exported protected abstract void redraw(boolean force)
force - The argument force will be true if the zoom level or the pixel
offset of the map view has changed, so that the pixel coordinates
need to be recomputed.@Exported protected abstract void remove()
MapWidget.removeOverlay(Overlay) or
MapWidget.clearOverlays(). The overlay must remove itself from the
map panes here.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||