JavaScript & React libraryAPIInterfacesCosmographPopupConfig

Interface: CosmographPopupConfig

Properties

content?

optional content: string

HTML content string to be displayed in the popup.

Default

''

bindTo?

optional bindTo: string | number | [number, number]

The [x, y] position or point index or point id to bind the popup to.

Default

undefined

placement?

optional placement: "top" | "bottom"

Placement of the popup relative to the bound point: ā€˜top’ or ā€˜bottom’.

Default

'top'

offset?

optional offset: [number, number]

Additional x and y pixel offset for the popup.

Default

[0, 8]

hidden?

optional hidden: boolean

Whether to hide the popup.

Default

false