Options
All
  • Public
  • Public/Protected
  • All
Menu

Class MapComponent

Hierarchy

  • Map
    • MapComponent

Implements

  • AfterViewInit

Index

Constructors

Properties

Accessors

Methods

Constructors

constructor

Properties

autopanstartEvent

autopanstartEvent: EventEmitter<Event> = new EventEmitter()

baselayerchangeEvent

baselayerchangeEvent: EventEmitter<LayersControlEvent> = new EventEmitter()

boxZoom

boxZoom: Handler

clickEvent

clickEvent: EventEmitter<MouseEvent> = new EventEmitter()

contextmenuEvent

contextmenuEvent: EventEmitter<MouseEvent> = new EventEmitter()

dblclickEvent

dblclickEvent: EventEmitter<MouseEvent> = new EventEmitter()

Protected domRoot

domRoot: HTMLElement

doubleClickZoom

doubleClickZoom: Handler

dragging

dragging: Handler

Private isZooming

isZooming: boolean = false

keyboard

keyboard: Handler

keypressEvent

keypressEvent: EventEmitter<KeyboardEvent> = new EventEmitter()

latChange

latChange: EventEmitter<number> = new EventEmitter()

layeraddEvent

layeraddEvent: EventEmitter<LayerEvent> = new EventEmitter()

layerremoveEvent

layerremoveEvent: EventEmitter<LayerEvent> = new EventEmitter()

lngChange

lngChange: EventEmitter<number> = new EventEmitter()

loadEvent

loadEvent: EventEmitter<Event> = new EventEmitter()

Protected mapDomRoot

mapDomRoot: HTMLElement

maxBoundsChange

maxBoundsChange: EventEmitter<LatLngBounds> = new EventEmitter()

maxZoomChange

maxZoomChange: EventEmitter<number> = new EventEmitter()

minZoomChange

minZoomChange: EventEmitter<number> = new EventEmitter()

mousedownEvent

mousedownEvent: EventEmitter<MouseEvent> = new EventEmitter()

mousemoveEvent

mousemoveEvent: EventEmitter<MouseEvent> = new EventEmitter()

mouseoutEvent

mouseoutEvent: EventEmitter<MouseEvent> = new EventEmitter()

mouseoverEvent

mouseoverEvent: EventEmitter<MouseEvent> = new EventEmitter()

mouseupEvent

mouseupEvent: EventEmitter<MouseEvent> = new EventEmitter()

moveEvent

moveEvent: EventEmitter<Event> = new EventEmitter()

Private moveTimeout

moveTimeout: number

moveendEvent

moveendEvent: EventEmitter<Event> = new EventEmitter()

movestartEvent

movestartEvent: EventEmitter<Event> = new EventEmitter()

options

options: MapOptions

overlayaddEvent

overlayaddEvent: EventEmitter<LayersControlEvent> = new EventEmitter()

overlayremoveEvent

overlayremoveEvent: EventEmitter<LayersControlEvent> = new EventEmitter()

popupcloseEvent

popupcloseEvent: EventEmitter<PopupEvent> = new EventEmitter()

popupopenEvent

popupopenEvent: EventEmitter<PopupEvent> = new EventEmitter()

preclickEvent

preclickEvent: EventEmitter<MouseEvent> = new EventEmitter()

resizeEvent

resizeEvent: EventEmitter<ResizeEvent> = new EventEmitter()

scrollWheelZoom

scrollWheelZoom: Handler

tap

tap: Handler

tooltipcloseEvent

tooltipcloseEvent: EventEmitter<TooltipEvent> = new EventEmitter()

tooltipopenEvent

tooltipopenEvent: EventEmitter<TooltipEvent> = new EventEmitter()

touchZoom

touchZoom: Handler

unloadEvent

unloadEvent: EventEmitter<Event> = new EventEmitter()

viewresetEvent

viewresetEvent: EventEmitter<Event> = new EventEmitter()

zoomChange

zoomChange: EventEmitter<number> = new EventEmitter()

zoomEvent

zoomEvent: EventEmitter<Event> = new EventEmitter()

zoomanimEvent

zoomanimEvent: EventEmitter<ZoomAnimEvent> = new EventEmitter()

zoomendEvent

zoomendEvent: EventEmitter<Event> = new EventEmitter()

zoomlevelschangeEvent

zoomlevelschangeEvent: EventEmitter<Event> = new EventEmitter()

zoomstartEvent

zoomstartEvent: EventEmitter<Event> = new EventEmitter()

Accessors

bounceAtZoomLimits

  • get bounceAtZoomLimits(): boolean
  • set bounceAtZoomLimits(val: boolean): void

boxZoomEnabled

  • get boxZoomEnabled(): boolean
  • set boxZoomEnabled(val: boolean): void

closePopupOnClick

  • get closePopupOnClick(): boolean
  • set closePopupOnClick(val: boolean): void

doubleClickZoomEnabled

  • get doubleClickZoomEnabled(): boolean
  • set doubleClickZoomEnabled(val: boolean): void

draggingEnabled

  • get draggingEnabled(): boolean
  • set draggingEnabled(val: boolean): void

easeLinearity

  • get easeLinearity(): number
  • set easeLinearity(val: number): void

fadeAnimation

  • get fadeAnimation(): boolean
  • set fadeAnimation(val: boolean): void

inertia

  • get inertia(): boolean
  • set inertia(val: boolean): void

inertiaDeceleration

  • get inertiaDeceleration(): number
  • set inertiaDeceleration(val: number): void

inertiaMaxSpeed

  • get inertiaMaxSpeed(): number
  • set inertiaMaxSpeed(val: number): void

keyboardEnabled

  • get keyboardEnabled(): boolean
  • set keyboardEnabled(val: boolean): void

keyboardPanDelta

  • get keyboardPanDelta(): number
  • set keyboardPanDelta(val: number): void

lat

  • get lat(): number
  • set lat(val: number): void

lng

  • get lng(): number
  • set lng(val: number): void

markerZoomAnimation

  • get markerZoomAnimation(): boolean
  • set markerZoomAnimation(val: boolean): void

maxBounds

  • get maxBounds(): LatLngBounds
  • set maxBounds(val: LatLngBounds): void

maxBoundsViscosity

  • get maxBoundsViscosity(): number
  • set maxBoundsViscosity(val: number): void

maxZoom

  • get maxZoom(): number
  • set maxZoom(val: number): void

minZoom

  • get minZoom(): number
  • set minZoom(val: number): void

scrollWheelZoomEnabled

  • get scrollWheelZoomEnabled(): boolean
  • set scrollWheelZoomEnabled(val: boolean): void

tapEnabled

  • get tapEnabled(): boolean
  • set tapEnabled(val: boolean): void

tapTolerance

  • get tapTolerance(): number
  • set tapTolerance(val: number): void

touchZoomEnabled

  • get touchZoomEnabled(): boolean
  • set touchZoomEnabled(val: boolean): void

trackResize

  • get trackResize(): boolean
  • set trackResize(val: boolean): void

transform3DLimit

  • get transform3DLimit(): number
  • set transform3DLimit(val: number): void

wheelDebounceTime

  • get wheelDebounceTime(): number
  • set wheelDebounceTime(val: number): void

wheelPxPerZoomLevel

  • get wheelPxPerZoomLevel(): number
  • set wheelPxPerZoomLevel(val: number): void

worldCopyJump

  • get worldCopyJump(): boolean
  • set worldCopyJump(val: boolean): void

zoom

  • get zoom(): number
  • set zoom(val: number): void

zoomAnimation

  • get zoomAnimation(): boolean
  • set zoomAnimation(val: boolean): void

zoomAnimationThreshold

  • get zoomAnimationThreshold(): number
  • set zoomAnimationThreshold(val: number): void

zoomDelta

  • get zoomDelta(): number
  • set zoomDelta(val: number): void

zoomSnap

  • get zoomSnap(): number
  • set zoomSnap(val: number): void

Methods

addControl

  • addControl(control: Control)
  • Parameters

    • control: Control

addEventListener

  • addEventListener(type: string, fn: EventHandlerFn, context?: Object)
  • addEventListener(eventMap: EventHandlerFnMap)
  • Alias for on(...)

    Adds a listener function (fn) to a particular event type of the object. You can optionally specify the context of the listener (object the this keyword will point to). You can also pass several space-separated types (e.g. 'click dblclick').

    Parameters

    • type: string
    • fn: EventHandlerFn
    • Optional context: Object
  • Alias for on(...)

    Adds a set of type/listener pairs, e.g. {click: onClick, mousemove: onMouseMove}

    Parameters

    • eventMap: EventHandlerFnMap

addEventParent

  • addEventParent(obj: Evented)
  • Adds an event parent - an Evented that will receive propagated events

    Parameters

    • obj: Evented

addHandler

  • addHandler(name: string, HandlerClass: function)
  • Parameters

    • name: string
    • HandlerClass: function
        • (): Handler
        • Returns Handler

addLayer

  • addLayer(layer: Layer)
  • Parameters

    • layer: Layer

addOneTimeEventListener

  • addOneTimeEventListener(type: string, fn: EventHandlerFn, context?: Object)
  • addOneTimeEventListener(eventMap: EventHandlerFnMap)
  • Alias for once(...)

    Behaves as on(...), except the listener will only get fired once and then removed.

    Parameters

    • type: string
    • fn: EventHandlerFn
    • Optional context: Object
  • Alias for once(...)

    Behaves as on(...), except the listener will only get fired once and then removed.

    Parameters

    • eventMap: EventHandlerFnMap

clearAllEventListeners

  • clearAllEventListeners()
  • Alias for off()

    Removes all listeners to all events on the object.

closePopup

  • closePopup(popup?: Popup)
  • Parameters

    • Optional popup: Popup

closeTooltip

  • closeTooltip(tooltip?: Tooltip)
  • Parameters

    • Optional tooltip: Tooltip

containerPointToLayerPoint

  • containerPointToLayerPoint(point: Point): Point
  • containerPointToLayerPoint(point: PointTuple): Point
  • Parameters

    • point: Point

    Returns Point

  • Parameters

    • point: PointTuple

    Returns Point

createPane

  • createPane(name: string, container?: HTMLElement): HTMLElement
  • Parameters

    • name: string
    • Optional container: HTMLElement

    Returns HTMLElement

distance

  • distance(latlng1: LatLng, latlng2: LatLng): number
  • distance(latlng1: LatLngLiteral, latlng2: LatLngLiteral): number
  • distance(latlng1: LatLngTuple, latlng2: LatLngTuple): number
  • Parameters

    • latlng1: LatLng
    • latlng2: LatLng

    Returns number

  • Parameters

    • latlng1: LatLngLiteral
    • latlng2: LatLngLiteral

    Returns number

  • Parameters

    • latlng1: LatLngTuple
    • latlng2: LatLngTuple

    Returns number

eachLayer

  • eachLayer(fn: function, context?: Object)
  • Parameters

    • fn: function
        • (layer: Layer): void
        • Parameters

          • layer: Layer

          Returns void

    • Optional context: Object

fire

  • fire(type: string, data?: Object, propagate?: boolean)
  • Fires an event of the specified type. You can optionally provide a data object — the first argument of the listener function will contain its properties. The event might can optionally be propagated to event parents.

    Parameters

    • type: string
    • Optional data: Object
    • Optional propagate: boolean

fireEvent

  • fireEvent(type: string, data?: Object, propagate?: boolean)
  • Alias for fire(...)

    Fires an event of the specified type. You can optionally provide a data object — the first argument of the listener function will contain its properties. The event might can optionally be propagated to event parents.

    Parameters

    • type: string
    • Optional data: Object
    • Optional propagate: boolean

fitBounds

  • fitBounds(bounds: LatLngBounds, options: FitBoundsOptions)
  • fitBounds(bounds: LatLngBoundsLiteral, options: FitBoundsOptions)
  • Parameters

    • bounds: LatLngBounds
    • options: FitBoundsOptions
  • Parameters

    • bounds: LatLngBoundsLiteral
    • options: FitBoundsOptions

fitWorld

  • fitWorld(options?: FitBoundsOptions)
  • Parameters

    • Optional options: FitBoundsOptions

flyTo

  • flyTo(latlng: LatLng, zoom?: number, options?: ZoomPanOptions)
  • flyTo(latlng: LatLngLiteral, zoom?: number, options?: ZoomPanOptions)
  • flyTo(latlng: LatLngTuple, zoom?: number, options?: ZoomPanOptions)
  • Parameters

    • latlng: LatLng
    • Optional zoom: number
    • Optional options: ZoomPanOptions
  • Parameters

    • latlng: LatLngLiteral
    • Optional zoom: number
    • Optional options: ZoomPanOptions
  • Parameters

    • latlng: LatLngTuple
    • Optional zoom: number
    • Optional options: ZoomPanOptions

flyToBounds

  • flyToBounds(bounds: LatLngBounds, options?: FitBoundsOptions)
  • flyToBounds(bounds: LatLngBoundsLiteral, options?: FitBoundsOptions)
  • Parameters

    • bounds: LatLngBounds
    • Optional options: FitBoundsOptions
  • Parameters

    • bounds: LatLngBoundsLiteral
    • Optional options: FitBoundsOptions

getBounds

  • getBounds(): LatLngBounds
  • Returns LatLngBounds

getBoundsZoom

  • getBoundsZoom(bounds: LatLngBounds, inside?: boolean): number
  • getBoundsZoom(bounds: LatLngBoundsLiteral, inside?: boolean): number
  • Parameters

    • bounds: LatLngBounds
    • Optional inside: boolean

    Returns number

  • Parameters

    • bounds: LatLngBoundsLiteral
    • Optional inside: boolean

    Returns number

getCenter

  • getCenter(): LatLng
  • Returns LatLng

getContainer

  • getContainer(): HTMLElement
  • Returns HTMLElement

getMaxZoom

  • getMaxZoom(): number
  • Returns number

getMinZoom

  • getMinZoom(): number
  • Returns number

getPane

  • getPane(pane: string): HTMLElement
  • getPane(pane: HTMLElement): HTMLElement
  • Parameters

    • pane: string

    Returns HTMLElement

  • Parameters

    • pane: HTMLElement

    Returns HTMLElement

getPanes

  • getPanes(): { [name: string]: HTMLElement; } & DefaultMapPanes
  • Returns { [name: string]: HTMLElement; } & DefaultMapPanes

getPixelBounds

  • getPixelBounds(): Bounds
  • Returns Bounds

getPixelOrigin

  • getPixelOrigin(): Point
  • Returns Point

getPixelWorldBounds

  • getPixelWorldBounds(zoom?: number): Bounds
  • Parameters

    • Optional zoom: number

    Returns Bounds

getRenderer

  • getRenderer(layer: Path): Renderer
  • Parameters

    • layer: Path

    Returns Renderer

getScaleZoom

  • getScaleZoom(scale: number, fromZoom: number): number
  • Parameters

    • scale: number
    • fromZoom: number

    Returns number

getSize

  • getSize(): Point
  • Returns Point

getZoom

  • getZoom(): number
  • Returns number

getZoomScale

  • getZoomScale(toZoom: number, fromZoom: number): number
  • Parameters

    • toZoom: number
    • fromZoom: number

    Returns number

hasEventListeners

  • hasEventListeners(type: string): boolean
  • Alias for listens(...)

    Returns true if a particular event type has any listeners attached to it.

    Parameters

    • type: string

    Returns boolean

hasLayer

  • hasLayer(layer: Layer): boolean
  • Parameters

    • layer: Layer

    Returns boolean

invalidateSize

  • invalidateSize(options: ZoomPanOptions)
  • invalidateSize(animate: boolean)
  • Parameters

    • options: ZoomPanOptions
  • Parameters

    • animate: boolean

latLngToContainerPoint

  • latLngToContainerPoint(latlng: LatLng): Point
  • latLngToContainerPoint(latlng: LatLngLiteral): Point
  • latLngToContainerPoint(latlng: LatLngTuple): Point
  • Parameters

    • latlng: LatLng

    Returns Point

  • Parameters

    • latlng: LatLngLiteral

    Returns Point

  • Parameters

    • latlng: LatLngTuple

    Returns Point

latLngToLayerPoint

  • latLngToLayerPoint(latlng: LatLng): Point
  • latLngToLayerPoint(latlng: LatLngLiteral): Point
  • latLngToLayerPoint(latlng: LatLngTuple): Point
  • Parameters

    • latlng: LatLng

    Returns Point

  • Parameters

    • latlng: LatLngLiteral

    Returns Point

  • Parameters

    • latlng: LatLngTuple

    Returns Point

layerPointToContainerPoint

  • layerPointToContainerPoint(point: Point): Point
  • layerPointToContainerPoint(point: PointTuple): Point
  • Parameters

    • point: Point

    Returns Point

  • Parameters

    • point: PointTuple

    Returns Point

layerPointToLatLng

  • layerPointToLatLng(point: Point): LatLng
  • layerPointToLatLng(point: PointTuple): LatLng
  • Parameters

    • point: Point

    Returns LatLng

  • Parameters

    • point: PointTuple

    Returns LatLng

listens

  • listens(type: string): boolean
  • Returns true if a particular event type has any listeners attached to it.

    Parameters

    • type: string

    Returns boolean

locate

  • locate(options?: LocateOptions)
  • Parameters

    • Optional options: LocateOptions

mouseEventToContainerPoint

  • mouseEventToContainerPoint(ev: MouseEvent): Point
  • Parameters

    • ev: MouseEvent

    Returns Point

mouseEventToLatLng

  • mouseEventToLatLng(ev: MouseEvent): LatLng
  • Parameters

    • ev: MouseEvent

    Returns LatLng

mouseEventToLayerPoint

  • mouseEventToLayerPoint(ev: MouseEvent): Point
  • Parameters

    • ev: MouseEvent

    Returns Point

ngAfterViewInit

  • ngAfterViewInit(): void

off

  • off(type: string, fn?: EventHandlerFn, context?: Object)
  • off(eventMap: EventHandlerFnMap)
  • off()
  • Removes a previously added listener function. If no function is specified, it will remove all the listeners of that particular event from the object. Note that if you passed a custom context to on, you must pass the same context to off in order to remove the listener.

    Parameters

    • type: string
    • Optional fn: EventHandlerFn
    • Optional context: Object
  • Removes a set of type/listener pairs.

    Parameters

    • eventMap: EventHandlerFnMap
  • Removes all listeners to all events on the object.

on

  • on(type: string, fn: EventHandlerFn, context?: Object)
  • on(eventMap: EventHandlerFnMap)
  • Adds a listener function (fn) to a particular event type of the object. You can optionally specify the context of the listener (object the this keyword will point to). You can also pass several space-separated types (e.g. 'click dblclick').

    Parameters

    • type: string
    • fn: EventHandlerFn
    • Optional context: Object
  • Adds a set of type/listener pairs, e.g. {click: onClick, mousemove: onMouseMove}

    Parameters

    • eventMap: EventHandlerFnMap

once

  • once(type: string, fn: EventHandlerFn, context?: Object)
  • once(eventMap: EventHandlerFnMap)
  • Behaves as on(...), except the listener will only get fired once and then removed.

    Parameters

    • type: string
    • fn: EventHandlerFn
    • Optional context: Object
  • Behaves as on(...), except the listener will only get fired once and then removed.

    Parameters

    • eventMap: EventHandlerFnMap

openPopup

  • openPopup(popup: Popup)
  • openPopup(content: string, latlng: LatLng, options?: PopupOptions)
  • openPopup(content: string, latlng: LatLngLiteral, options?: PopupOptions)
  • openPopup(content: string, latlng: LatLngTuple, options?: PopupOptions)
  • openPopup(content: HTMLElement, latlng: LatLng, options?: PopupOptions)
  • openPopup(content: HTMLElement, latlng: LatLngLiteral, options?: PopupOptions)
  • openPopup(content: HTMLElement, latlng: LatLngTuple, options?: PopupOptions)
  • Parameters

    • popup: Popup
  • Parameters

    • content: string
    • latlng: LatLng
    • Optional options: PopupOptions
  • Parameters

    • content: string
    • latlng: LatLngLiteral
    • Optional options: PopupOptions
  • Parameters

    • content: string
    • latlng: LatLngTuple
    • Optional options: PopupOptions
  • Parameters

    • content: HTMLElement
    • latlng: LatLng
    • Optional options: PopupOptions
  • Parameters

    • content: HTMLElement
    • latlng: LatLngLiteral
    • Optional options: PopupOptions
  • Parameters

    • content: HTMLElement
    • latlng: LatLngTuple
    • Optional options: PopupOptions

openTooltip

  • openTooltip(tooltip: Tooltip)
  • openTooltip(content: string, latlng: LatLng, options?: TooltipOptions)
  • openTooltip(content: string, latlng: LatLngLiteral, options?: TooltipOptions)
  • openTooltip(content: string, latlng: LatLngTuple, options?: TooltipOptions)
  • openTooltip(content: HTMLElement, latlng: LatLng, options?: TooltipOptions)
  • openTooltip(content: HTMLElement, latlng: LatLngLiteral, options?: TooltipOptions)
  • openTooltip(content: HTMLElement, latlng: LatLngTuple, options?: TooltipOptions)
  • Parameters

    • tooltip: Tooltip
  • Parameters

    • content: string
    • latlng: LatLng
    • Optional options: TooltipOptions
  • Parameters

    • content: string
    • latlng: LatLngLiteral
    • Optional options: TooltipOptions
  • Parameters

    • content: string
    • latlng: LatLngTuple
    • Optional options: TooltipOptions
  • Parameters

    • content: HTMLElement
    • latlng: LatLng
    • Optional options: TooltipOptions
  • Parameters

    • content: HTMLElement
    • latlng: LatLngLiteral
    • Optional options: TooltipOptions
  • Parameters

    • content: HTMLElement
    • latlng: LatLngTuple
    • Optional options: TooltipOptions

panBy

  • panBy(offset: Point)
  • panBy(offset: PointTuple)
  • Parameters

    • offset: Point
  • Parameters

    • offset: PointTuple

panInsideBounds

  • panInsideBounds(bounds: LatLngBounds, options?: PanOptions)
  • panInsideBounds(bounds: LatLngBoundsLiteral, options?: PanOptions)
  • Parameters

    • bounds: LatLngBounds
    • Optional options: PanOptions
  • Parameters

    • bounds: LatLngBoundsLiteral
    • Optional options: PanOptions

panTo

  • panTo(latlng: LatLng, options?: PanOptions)
  • panTo(latlng: LatLngLiteral, options?: PanOptions)
  • panTo(latlng: LatLngTuple, options?: PanOptions)
  • Parameters

    • latlng: LatLng
    • Optional options: PanOptions
  • Parameters

    • latlng: LatLngLiteral
    • Optional options: PanOptions
  • Parameters

    • latlng: LatLngTuple
    • Optional options: PanOptions

project

  • project(latlng: LatLng, zoom: number): Point
  • project(latlng: LatLngLiteral, zoom: number): Point
  • project(latlng: LatLngTuple, zoom: number): Point
  • Parameters

    • latlng: LatLng
    • zoom: number

    Returns Point

  • Parameters

    • latlng: LatLngLiteral
    • zoom: number

    Returns Point

  • Parameters

    • latlng: LatLngTuple
    • zoom: number

    Returns Point

remove

  • remove()

removeControl

  • removeControl(control: Control)
  • Parameters

    • control: Control

removeEventListener

  • removeEventListener(type: string, fn: EventHandlerFn, context?: Object)
  • removeEventListener(eventMap: EventHandlerFnMap)
  • Alias for off(...)

    Removes a previously added listener function. If no function is specified, it will remove all the listeners of that particular event from the object. Note that if you passed a custom context to on, you must pass the same context to off in order to remove the listener.

    Parameters

    • type: string
    • fn: EventHandlerFn
    • Optional context: Object
  • Alias for off(...)

    Removes a set of type/listener pairs.

    Parameters

    • eventMap: EventHandlerFnMap

removeEventParent

  • removeEventParent(obj: Evented)
  • Removes an event parent, so it will stop receiving propagated events

    Parameters

    • obj: Evented

removeLayer

  • removeLayer(layer: Layer)
  • Parameters

    • layer: Layer

setMaxBounds

  • setMaxBounds(bounds: LatLngBoundsExpression)
  • Parameters

    • bounds: LatLngBoundsExpression

setMaxZoom

  • setMaxZoom(val: number)

setMinZoom

  • setMinZoom(val: number)

setView

  • setView(center: LatLng, zoom: number, options?: ZoomPanOptions)
  • setView(center: LatLngLiteral, zoom: number, options?: ZoomPanOptions)
  • setView(center: LatLngTuple, zoom: number, options?: ZoomPanOptions)
  • setView(center: LatLngExpression, zoom: number, options?: ZoomPanOptions)
  • Parameters

    • center: LatLng
    • zoom: number
    • Optional options: ZoomPanOptions
  • Parameters

    • center: LatLngLiteral
    • zoom: number
    • Optional options: ZoomPanOptions
  • Parameters

    • center: LatLngTuple
    • zoom: number
    • Optional options: ZoomPanOptions
  • Parameters

    • center: LatLngExpression
    • zoom: number
    • Optional options: ZoomPanOptions

setZoom

  • setZoom(zoom: number, options?: ZoomPanOptions)
  • Parameters

    • zoom: number
    • Optional options: ZoomPanOptions

setZoomAround

  • setZoomAround(latlng: LatLng, zoom: number, options: ZoomOptions)
  • setZoomAround(latlng: LatLngLiteral, zoom: number, options: ZoomOptions)
  • setZoomAround(latlng: LatLngTuple, zoom: number, options: ZoomOptions)
  • setZoomAround(offset: Point, zoom: number, options: ZoomOptions)
  • Parameters

    • latlng: LatLng
    • zoom: number
    • options: ZoomOptions
  • Parameters

    • latlng: LatLngLiteral
    • zoom: number
    • options: ZoomOptions
  • Parameters

    • latlng: LatLngTuple
    • zoom: number
    • options: ZoomOptions
  • Parameters

    • offset: Point
    • zoom: number
    • options: ZoomOptions

stop

  • stop()

stopLocate

  • stopLocate()

unproject

  • unproject(point: Point, zoom: number): LatLng
  • unproject(point: PointTuple, zoom: number): LatLng
  • Parameters

    • point: Point
    • zoom: number

    Returns LatLng

  • Parameters

    • point: PointTuple
    • zoom: number

    Returns LatLng

whenReady

  • whenReady(fn: function, context?: Object)
  • Parameters

    • fn: function
        • (): void
        • Returns void

    • Optional context: Object

wrapLatLng

  • wrapLatLng(latlng: LatLng): LatLng
  • wrapLatLng(latlng: LatLngLiteral): LatLng
  • wrapLatLng(latlng: LatLngTuple): LatLng
  • Parameters

    • latlng: LatLng

    Returns LatLng

  • Parameters

    • latlng: LatLngLiteral

    Returns LatLng

  • Parameters

    • latlng: LatLngTuple

    Returns LatLng

zoomIn

  • zoomIn(delta?: number, options?: ZoomOptions)
  • Parameters

    • Optional delta: number
    • Optional options: ZoomOptions

zoomOut

  • zoomOut(delta?: number, options?: ZoomOptions)
  • Parameters

    • Optional delta: number
    • Optional options: ZoomOptions

Generated using TypeDoc