Class Marker

Overlays

Hierarchy

Index

Constructor methods

Properties

Methods

Constructor methods

constructor(opts?: MarkerOptions): Marker

Parameters

Returns

Marker

Properties

public static MAX_ZINDEX: number

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 getAnimation(): Animation

Returns

Animation

public getClickable(): boolean

Returns

boolean

public getCursor(): string

Returns

string

public getDraggable(): boolean

Returns

boolean

public getFlat(): boolean

Returns

boolean

public getIcon(): MarkerImage

Returns

MarkerImage

public getMap(): any

Returns

any

public getPosition(): LatLng

Returns

LatLng

public getShadow(): MarkerImage

Returns

MarkerImage

public getShape(): MarkerShape

Returns

MarkerShape

public getTitle(): string

Returns

string

public getVisible(): boolean

Returns

boolean

public getZIndex(): number

Returns

number

public notify(key: string)

Parameters

  • key: string

public set(key: string, value: any)

Parameters

  • key: string
  • value: any

public setAnimation(animation: Animation)

Parameters

public setClickable(flag: boolean)

Parameters

  • flag: boolean

public setCursor(cursor: string)

Parameters

  • cursor: string

public setDraggable(flag: boolean)

Parameters

  • flag: boolean

public setFlat(flag: boolean)

Parameters

  • flag: boolean

public setIcon(icon: MarkerImage)

Parameters

public setIcon(icon: string)

Parameters

  • icon: string

public setMap(map: Map)

Parameters

public setMap(map: StreetViewPanorama)

Parameters

public setOptions(options: MarkerOptions)

Parameters

public setPosition(latlng: LatLng)

Parameters

public setShadow(shadow: MarkerImage)

Parameters

public setShadow(shadow: string)

Parameters

  • shadow: string

public setShape(shape: MarkerShape)

Parameters

public setTitle(title: string)

Parameters

  • title: string

public setValues(values: any)

Parameters

  • values: any

public setVisible(visible: boolean)

Parameters

  • visible: boolean

public setZIndex(zIndex: number)

Parameters

  • zIndex: number

public unbind(key: string)

Parameters

  • key: string

public unbindAll()