Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

Index

Constructors

constructor

Methods

add

addGeoJson

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

contains

  • contains(feature: Feature): boolean
  • Parameters

    Returns boolean

forEach

  • forEach(callback: (feature: Feature) => void): void
  • Parameters

    Returns void

get

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

    Parameters

    • key: string

    Returns any

getControlPosition

getControls

getDrawingMode

  • getDrawingMode(): null | "Point" | "LineString" | "Polygon"
  • Returns null | "Point" | "LineString" | "Polygon"

getFeatureById

  • getFeatureById(id: string | number): Feature
  • Parameters

    • id: string | number

    Returns Feature

getMap

  • getMap(): Map<Element>
  • Returns Map<Element>

getStyle

loadGeoJson

  • Parameters

    Returns void

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

overrideStyle

remove

  • Parameters

    Returns void

revertStyle

  • revertStyle(feature?: Feature): void
  • Parameters

    Returns void

set

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

    Parameters

    • key: string
    • value: any

    Returns void

setControlPosition

setControls

  • Parameters

    Returns void

setDrawingMode

  • setDrawingMode(drawingMode: null | "Point" | "LineString" | "Polygon"): void
  • Parameters

    • drawingMode: null | "Point" | "LineString" | "Polygon"

    Returns void

setMap

  • setMap(map: null | Map<Element>): void
  • Parameters

    • map: null | Map<Element>

    Returns void

setStyle

setValues

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

    Parameters

    • values: any

    Returns void

toGeoJson

  • toGeoJson(callback: (feature: object) => void): void
  • Parameters

    • callback: (feature: object) => void
        • (feature: object): void
        • Parameters

          • feature: object

          Returns void

    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

Generated using TypeDoc