Class: Viewer

bu.Viewer

This is an abstract class for all types of viewers. Each viewer should be focused en one type of geographical data, as ortho or 2D imagery and vector, oblique images, street 360 images, or 3D data.

Constructor

new Viewer(options)

Parameters:
Name Type Description
options bu.ViewerOptions

Viewer options.

Source:

Extends

  • ol.Object

Methods

(abstract) clone() → {bu.Viewer}

Clones this viewer reinitializing the new one with main values of current one. This is an abstract method that must be implemented in derived classes.

Source:
Returns:

The viewer cloned.

Type
bu.Viewer

disposeInternal()

Source:

getTarget() → {Element|string|undefined}

Get the target in which the viewer is rendered. Note that this returns what is entered as an option or in setTarget: if that was an element, it returns an element; if a string, it returns that.

Source:
Returns:

The Element or id of the Element that the viewer is rendered in.

Type
Element | string | undefined

getTargetElement() → {Element}

Get the DOM element into which this viewer is rendered. In contrast to getTarget this method always return an Element, or null if the viewer has no target.

Source:
Returns:

The element that the viewer is rendered in.

Type
Element

getViewType() → {bu.ViewType}

Return the type of the viewer.

Source:
Returns:

The viewer type.

Type
bu.ViewType

setTarget(target)

Set the target element to render this viewer into.

Parameters:
Name Type Description
target Element | string | undefined

The Element or id of the Element that the viewer is rendered in.

Source: