Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

Index

Constructors

constructor

  • The MVCObject constructor is guaranteed to be an empty function, and so you may inherit from MVCObject by simply writing MySubclass.prototype = new google.maps.MVCObject();. Unless otherwise noted, this is not true of other classes in the API, and inheriting from other classes in the API is not supported.

    Returns OverlayView

Methods

addListener

  • addListener(eventName: string, handler: (...args: any[]) => void): MapsEventListener
  • Adds the given listener function to the given event name. Returns an identifier for this listener that can be used with google.maps.event.removeListener.

    Parameters

    • eventName: string
    • handler: (...args: any[]) => void
        • (...args: any[]): void
        • Parameters

          • Rest ...args: any[]

          Returns void

    Returns MapsEventListener

bindTo

  • bindTo(key: string, target: MVCObject, targetKey?: string, noNotify?: boolean): void
  • Binds a View to a Model.

    Parameters

    • key: string
    • target: MVCObject
    • Optional targetKey: string
    • Optional noNotify: boolean

    Returns void

changed

  • changed(key: string): void

draw

  • draw(): void
  • Returns void

get

  • get(key: string): any
  • Gets a value.

    Parameters

    • key: string

    Returns any

getMap

getPanes

getProjection

notify

  • notify(key: string): void
  • Notify all observers of a change on this property. This notifies both objects that are bound to the object's property as well as the object that it is bound to.

    Parameters

    • key: string

    Returns void

onAdd

  • onAdd(): void
  • Returns void

onRemove

  • onRemove(): void
  • Returns void

set

  • set(key: string, value: any): void
  • Sets a value.

    Parameters

    • key: string
    • value: any

    Returns void

setMap

setValues

  • setValues(values: any): void
  • Sets a collection of key-value pairs.

    Parameters

    • values: any

    Returns void

unbind

  • unbind(key: string): void
  • Removes a binding. Unbinding will set the unbound property to the current value. The object will not be notified, as the value has not changed.

    Parameters

    • key: string

    Returns void

unbindAll

  • unbindAll(): void

Static preventMapHitsAndGesturesFrom

  • preventMapHitsAndGesturesFrom(element: Element): void
  • Stops click, tap, drag, and wheel events on the element from bubbling up to the map. Use this to prevent map dragging and zooming, as well as map "click" events.

    see

    Maps JavaScript API

    Parameters

    • element: Element

    Returns void

Static preventMapHitsFrom

  • preventMapHitsFrom(element: Element): void
  • Stops click or tap on the element from bubbling up to the map. Use this to prevent the map from triggering "click" events.

    see

    Maps JavaScript API

    Parameters

    • element: Element

    Returns void

Generated using TypeDoc