Class Polygon

MVC

Hierarchy

Index

Constructor methods

Methods

Constructor methods

constructor(opts?: PolygonOptions): Polygon

Parameters

Returns

Polygon

Methods

public addListener(eventName: string, handler: (...args: any[]) => void): MapsEventListener

Parameters

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

Returns

MapsEventListener

public bindTo(key: string, target: MVCObject, targetKey?: string, noNotify?: boolean)

Parameters

  • key: string
  • target: MVCObject
  • targetKey?: string optional
  • noNotify?: boolean optional

public changed(key: string)

Parameters

  • key: string

public get(key: string): any

Parameters

  • key: string

Returns

any

public getDraggable(): boolean

Returns

boolean

public getEditable(): boolean

Returns

boolean

public getMap(): Map

Returns

Map

public getPath(): MVCArray

Returns

MVCArray

public getPaths(): MVCArray

Returns

MVCArray

public getVisible(): boolean

Returns

boolean

public notify(key: string)

Parameters

  • key: string

public set(key: string, value: any)

Parameters

  • key: string
  • value: any

public setDraggable(draggable: boolean)

Parameters

  • draggable: boolean

public setEditable(editable: boolean)

Parameters

  • editable: boolean

public setMap(map: Map)

Parameters

public setOptions(options: PolygonOptions)

Parameters

public setPath(path: MVCArray)

Parameters

public setPath(path: LatLng[])

Parameters

public setPaths(paths: MVCArray)

Parameters

public setPaths(paths: MVCArray[])

Parameters

public setPaths(path: LatLng[])

Parameters

public setPaths(path: Array<google.maps.LatLng[]>)

Parameters

  • path: Array<google.maps.LatLng[]>

public setValues(values: any)

Parameters

  • values: any

public setVisible(visible: boolean)

Parameters

  • visible: boolean

public unbind(key: string)

Parameters

  • key: string

public unbindAll()