Skip to main content

MapViewport

wemap-sdk-js


Interface: MapViewport

Minimal map surface required by viewport-driven indoor features.

Keeps indoor orchestration independent of the full WemapMap facade.

Methods

getBounds()

getBounds(): BoundingBox

Returns

BoundingBox


getCenter()

getCenter(): Coordinates

Returns

Coordinates


getLevel()

getLevel(): number | null

Returns

number | null


getZoom()

getZoom(): number

Returns

number


off()

off(type, listener): void

Parameters

type

"load" | "moveend"

listener

() => void

Returns

void


on()

on(type, listener): void

Parameters

type

"load" | "moveend"

listener

() => void

Returns

void