Options
All
  • Public
  • Public/Protected
  • All
Menu

Class MapboxView

Hierarchy

Implements

Index

Constructors

Properties

Accessors

Methods

Constructors

constructor

  • new MapboxView(map: Map, key?: string | null): MapboxView

Properties

Static NeedsAnimate

NeedsAnimate: number = 1 << 1

Static NeedsCompute

NeedsCompute: number = 1 << 0

Static NeedsLayout

NeedsLayout: number = 1 << 2

Static NeedsRender

NeedsRender: number = 1 << 4

Static NeedsScroll

NeedsScroll: number = 1 << 3

Static UpdateFlagsMask

UpdateFlagsMask: number = (1 << 5) - 1

Accessors

anchor

appView

bounds

canvasView

childViews

  • get childViews(): ReadonlyArray<View>

clientBounds

  • get clientBounds(): BoxR2

clientTransform

culled

  • get culled(): boolean

hitBounds

  • get hitBounds(): BoxR2 | null

hover

  • get hover(): boolean

map

  • get map(): Map

pageBounds

  • get pageBounds(): BoxR2

pageTransform

parentTransform

parentView

  • get parentView(): View | null

pixelRatio

  • get pixelRatio(): number

popoverBounds

  • get popoverBounds(): BoxR2

projection

renderingContext

updateTime

  • get updateTime(): number

viewController

viewIdiom

viewObservers

viewport

zoom

  • get zoom(): number

Methods

addViewObserver

animate

append

appendChildView

  • appendChildView(childView: View): void

cascadeMount

  • cascadeMount(): void

cascadeUnmount

  • cascadeUnmount(): void

cascadeUpdate

childViewContext

Protected computeHitBounds

  • computeHitBounds(): void

Protected cullHitBounds

  • cullHitBounds(): void

Protected didAddViewObserver

Protected didAnimate

Protected didCompute

Protected didInsertChildView

  • didInsertChildView(childView: View, targetView: View | null | undefined): void

Protected didLayout

Protected didMount

  • didMount(): void

Protected didObserve

  • didObserve(callback: (this: this, viewObserver: ViewObserver) => void): void

Protected didProject

Protected didRemoveChildView

  • didRemoveChildView(childView: View): void

Protected didRemoveViewObserver

Protected didRender

Protected didScroll

Protected didSetAnchor

Protected didSetBounds

  • didSetBounds(newBounds: BoxR2, oldBounds: BoxR2): void

Protected didSetCulled

  • didSetCulled(culled: boolean): void

Protected didSetHidden

  • didSetHidden(hidden: boolean): void

Protected didSetKey

  • didSetKey(key: string | null): void

Protected didSetParentView

  • didSetParentView(parentView: View | null): void

Protected didSetProjection

Protected didSetViewController

Protected didSetZoom

  • didSetZoom(newZoom: number, oldZoom: number): void

Protected didUnmount

  • didUnmount(): void

Protected didUpdate

dispatchEvent

getChildView

  • getChildView(key: string): View | null

hitTest

Protected initMap

  • initMap(map: Map): void

insert

insertChildView

  • insertChildView(childView: View, targetView: View | null): void

isMounted

  • isMounted(): boolean

isVisible

  • isVisible(): boolean

key

  • key(): string | null
  • key(key: string | null): this

Protected layoutChildView

Protected layoutChildViews

mapViewContext

needsUpdate

  • needsUpdate(updateFlags: number, viewContext: MapViewContext): number

off

  • off(type: string, listener: EventListenerOrEventListenerObject, options?: EventListenerOptions | boolean): this

on

  • on(type: string, listener: EventListenerOrEventListenerObject, options?: AddEventListenerOptions | boolean): this

Protected onAddViewObserver

Protected onAnimate

Protected onCompute

Protected onInsertChildView

  • onInsertChildView(childView: View, targetView: View | null | undefined): void

Protected onLayout

Protected onMapLoad

  • onMapLoad(): void

Protected onMapRender

  • onMapRender(): void

Protected onMapZoom

  • onMapZoom(): void

Protected onMount

  • onMount(): void

Protected onProject

Protected onRemoveChildView

  • onRemoveChildView(childView: View): void

Protected onRemoveViewObserver

Protected onRender

Protected onScroll

Protected onSetAnchor

Protected onSetBounds

  • onSetBounds(newBounds: BoxR2, oldBounds: BoxR2): void

Protected onSetCulled

  • onSetCulled(culled: boolean): void

Protected onSetHidden

  • onSetHidden(hidden: boolean): void

Protected onSetKey

  • onSetKey(key: string | null): void

Protected onSetParentView

  • onSetParentView(parentView: View | null): void

Protected onSetProjection

Protected onSetViewController

Protected onSetZoom

  • onSetZoom(newZoom: number, oldZoom: number): void

Protected onUnmount

  • onUnmount(): void

Protected onUpdate

overlayCanvas

prepend

prependChildView

  • prependChildView(childView: View): void

project

remove

  • remove(): void

removeAll

  • removeAll(): void

removeChildView

  • removeChildView(childView: View): void

removeViewObserver

requestUpdate

  • requestUpdate(updateFlags: number, immediate: boolean): void

requireUpdate

  • requireUpdate(updateFlags: number, immediate?: boolean): void

setAnchor

setBounds

  • setBounds(bounds: BoxR2): void

setChildView

  • setChildView(key: string, newChildView: View | null): View | null

setCulled

  • setCulled(culled: boolean): void

setHidden

  • setHidden(hidden: boolean): void

setProjection

setViewController

setZoom

  • setZoom(zoom: number): void

unproject

Protected willAddViewObserver

Protected willAnimate

Protected willCompute

Protected willInsertChildView

  • willInsertChildView(childView: View, targetView: View | null | undefined): void

Protected willLayout

Protected willMount

  • willMount(): void

Protected willObserve

  • willObserve(callback: (this: this, viewObserver: ViewObserver) => void): void

Protected willProject

Protected willRemoveChildView

  • willRemoveChildView(childView: View): void

Protected willRemoveViewObserver

Protected willRender

Protected willScroll

Protected willSetAnchor

Protected willSetBounds

Protected willSetCulled

  • willSetCulled(culled: boolean): boolean | void

Protected willSetHidden

  • willSetHidden(hidden: boolean): boolean | void

Protected willSetKey

  • willSetKey(key: string | null): void

Protected willSetParentView

  • willSetParentView(parentView: View | null): void

Protected willSetProjection

Protected willSetViewController

Protected willSetZoom

  • willSetZoom(zoom: number): void

Protected willUnmount

  • willUnmount(): void

Protected willUpdate

Static create

Static fromNode