Skip to main content

ViewerHeadingMarker

wemap-sdk-js


Class: ViewerHeadingMarker

A Street-View-style cone on the map marking the node the WemapViewer is showing and the direction the user is currently looking. The cone follows the viewer as it navigates and rotates live as the user drags the panorama.

const cone = new ViewerHeadingMarker(map, viewer);
// ...
cone.destroy();

Constructors​

Constructor​

new ViewerHeadingMarker(wemapMap, viewer, options?): ViewerHeadingMarker

Parameters​

wemapMap​

WemapMap

viewer​

WemapViewer

options?​

ViewerHeadingMarkerOptions = {}

Returns​

ViewerHeadingMarker

Methods​

destroy()​

destroy(): void

Remove the marker and detach listeners. Idempotent.

Returns​

void