public class OverlayView extends MVCObject<OverlayView>
Modifier | Constructor and Description |
---|---|
protected |
OverlayView()
use newInstance();
|
Modifier and Type | Method and Description |
---|---|
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.
|
bindTo, bindTo, bindTo, changed, createInstanceOfMVCObject, get, notify, set, setValues, unbind, unbindAll
cast, createArray, createFunction, createObject, equals, hashCode, toSource, toString
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
- Copyright © 2011-2013 Gone Vertical LLC. All Rights Reserved.