|
Follow us on GitHub |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.google.gwt.core.client.JavaScriptObject
com.google.gwt.maps.client.mvc.MVCObject<OverlayView>
com.google.gwt.maps.client.overlays.OverlayView
public class OverlayView
You can implement this class if you want to display custom types of overlay objects on the map. This class extends MVCObject.
See OverlayView API Doc
Constructor Summary | |
---|---|
protected |
OverlayView()
use newInstance(); |
Method Summary | |
---|---|
void |
draw()
Implement this method to draw or update the overlay. |
MapWidget |
getMapWidget()
get mapWidget |
MapPanes |
getPanes()
Returns the panes in which this OverlayView can be rendered. |
MapCanvasProjection |
getProjection()
Returns the MapCanvasProjection object associated with this OverlayView. |
static OverlayView |
newInstance()
You should inherit from this class by setting your overlay's prototype to new OverlayView.prototype. |
void |
onAdd()
Implement this method to initialize the overlay DOM elements. |
void |
onRemove()
Implement this method to remove your elements from the DOM. |
void |
setMap(MapWidget mapWidget)
Adds the overlay to the map or panorama. |
void |
setMap(StreetViewPanoramaWidget streetViewPanoramaWdiget)
Adds the overlay to the map or panorama. |
Methods inherited from class com.google.gwt.maps.client.mvc.MVCObject |
---|
bindTo, bindTo, bindTo, changed, createInstanceOfMVCObject, get, notify, set, setValues, unbind, unbindAll |
Methods inherited from class com.google.gwt.core.client.JavaScriptObject |
---|
cast, createArray, createFunction, createObject, equals, hashCode, toSource, toString |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
protected OverlayView()
Method Detail |
---|
public static final OverlayView newInstance()
OverlayView
public final void draw()
public final MapWidget getMapWidget()
public final MapPanes getPanes()
public final MapCanvasProjection getProjection()
public final void onAdd()
public final void onRemove()
public final void setMap(MapWidget mapWidget)
mapWidget
- public final void setMap(StreetViewPanoramaWidget streetViewPanoramaWdiget)
streetViewPanoramaWdiget
-
|
Follow us on GitHub |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |