Class Map

Map

Hierarchy

Index

Constructor methods

Properties

Methods

Constructor methods

constructor(mapDiv: Element, opts?: MapOptions): Map

Parameters

Returns

Map

Properties

public controls: MVCArray[]

public mapTypes: MapTypeRegistry

public overlayMapTypes: MVCArray

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 fitBounds(bounds: LatLngBounds)

Parameters

public get(key: string): any

Parameters

  • key: string

Returns

any

public getBounds(): LatLngBounds

Returns

LatLngBounds

public getCenter(): LatLng

Returns

LatLng

public getDiv(): Element

Returns

Element

public getHeading(): number

Returns

number

public getMapTypeId(): MapTypeId

Returns

MapTypeId

public getProjection(): Projection

Returns

Projection

public getStreetView(): StreetViewPanorama

Returns

StreetViewPanorama

public getTilt(): number

Returns

number

public getZoom(): number

Returns

number

public notify(key: string)

Parameters

  • key: string

public panBy(x: number, y: number)

Parameters

  • x: number
  • y: number

public panTo(latLng: LatLng)

Parameters

public panToBounds(latLngBounds: LatLngBounds)

Parameters

public set(key: string, value: any)

Parameters

  • key: string
  • value: any

public setCenter(latlng: LatLng)

Parameters

public setHeading(heading: number)

Parameters

  • heading: number

public setMapTypeId(mapTypeId: MapTypeId)

Parameters

public setOptions(options: MapOptions)

Parameters

public setStreetView(panorama: StreetViewPanorama)

Parameters

public setTilt(tilt: number)

Parameters

  • tilt: number

public setValues(values: any)

Parameters

  • values: any

public setZoom(zoom: number)

Parameters

  • zoom: number

public unbind(key: string)

Parameters

  • key: string

public unbindAll()