new InfoBoxViewModel()

The view model for InfoBox.


staticInfoBoxViewModel.defaultSanitizer :InfoBoxViewModel~Sanitizer

Gets or sets the default HTML sanitization function to use for all instances. By default, the Google Caja HTML/CSS sanitizer is loaded in a worker. A specific instance can override this property by setting its sanitizer property.

cameraClicked :Event

Gets an Event that is fired when the user clicks the camera icon.

cameraIconPath :String

Gets the SVG path of the camera icon, which can change to be "crossed out" or not.

closeClicked :Event

Gets an Event that is fired when the user closes the info box.

descriptionRawHtml :String

Gets or sets the un-sanitized description HTML for the info box.

descriptionSanitizedHtml :String

Gets the sanitized description HTML for the info box.

enableCamera :Boolean

Gets or sets whether the camera tracking icon is enabled.

isCameraTracking :Boolean

Gets or sets the status of current camera tracking of the selected object.

loadingIndicatorHtml :String

Gets or sets the HTML for the loading indicator during sanitization of the raw description.

maxHeight :Number

Gets or sets the maximum height of the info box in pixels. This property is observable.
Gets the HTML sanitization function to use for the selection description.

showInfo :Boolean

Gets or sets the visibility of the info box.

titleText :String

Gets or sets the title text in the info box.



Gets the maximum height of sections within the info box, minus an offset, in CSS-ready form.
Name Type Description
offset Number The offset in pixels.

Type Definitions


A function that sanitizes HTML from a potentially untrusted source, for display in the info box.
Name Type Description
rawHTML String Raw HTML to display.
Sanitized HTML, or a Promise for sanitized HTML.