Optional
anchor?: stringDefines where the marker is placed toward its defined position
Optional
autoplay?: booleanAutoplay of videoLayer
markers
Optional
chromaKey?: {Will make a color of the image/video transparent (only for imagerLayer
, videoLayer
)
Optional
color?: ColorRepresentation | { b: number; g: number; r: number }Optional
similarity?: numberOptional
smoothness?: numberOptional
circle?: numberRadius of the circle
Optional
className?: stringCSS class(es) added to the marker element (ignored for imageLayer
, videoLayer
)
Optional
content?: stringHTML content that will be displayed on the side panel when the marker is clicked
Optional
data?: anyAny custom data you want to attach to the marker
Optional
element?: MarkerElementExiting DOM element
Optional
elementLayer?: MarkerElementExiting DOM element
Optional
ellipse?: [number, number] | { rx: number; ry: number }Radiuses of the ellipse
Optional
hideList?: booleanHide the marker in the markers list
Optional
hoverScale?: boolean | number | { amount?: number; duration?: number; easing?: string }Overrides the global defaultHoverScale
Optional
html?: stringHTML content of the marker
Unique identifier of the marker
Optional
image?: stringPath to an image
Optional
imageLayer?: stringPath to an image
Optional
listContent?: stringThe name that appears in the list of markers
Optional
opacity?: numberOpacity of the marker
Optional
orientation?: "front" | "horizontal" | "vertical-left" | "vertical-right"Optional
path?: stringDefinition of the path
Optional
polygon?: Array of points defining the polygon in spherical coordinates
Optional
polygonPixels?: [number, number][] | [number, number][][]Array of points defining the polygon in pixel coordinates on the panorama image
Optional
polyline?: [number, number][] | [string, string][] | number[] | string[]Array of points defining the polyline in spherical coordinates
Optional
polylinePixels?: [number, number][] | number[]Array of points defining the polyline in pixel coordinates on the panorama image
Optional
position?: Position of the marker (required but for polygon
and polyline
)
The array form is used for imageLayer
and videoLayer
Optional
rect?: [number, number] | { height: number; width: number }Size of the rectangle
Optional
rotation?: Rotation applied to the marker (ignored for polygon
and polyline
)
If defined as a scalar, it applies to the roll
(Z axis)
Only 3D markers (imageLayer
, videoLayer
, elementLayer
) support yaw
and pitch
Optional
scale?: Configures the scale of the marker depending on the zoom level and/or the horizontal offset (ignored for polygon
, polyline
, imageLayer
, videoLayer
)
Optional
size?: SizeSize of the marker (required for image
, recommended for html
, ignored for others)
Optional
square?: numberSize of the square
Optional
style?: Record<string, string>CSS properties to set on the marker (background, border, etc.) (ignored for imagerLayer
, videoLayer
)
Optional
svgStyle?: Record<string, string>SVG properties to set on the marker (fill, stroke, etc.) (only for SVG markers)
Optional
tooltip?: Configuration of the marker tooltip
Optional
videoLayer?: stringPath to a video
Optional
visible?: booleanInitial visibility of the marker
Optional
zIndex?: numberDrawing order
Optional
zoomLvl?: numberThe zoom level which will be applied when calling gotoMarker()
method or when clicking on the marker in the list
Configuration of a marker