Optional
anchor?: stringDefines where the marker is placed toward its defined position
'center center'
Optional
autoplay?: booleanAutoplay of videoLayer
markers
true
Optional
chromaWill make a color of the image/video transparent (only for imagerLayer
, videoLayer
)
Optional
color?: ColorRepresentation | { 0x00ff00
false
Optional
similarity?: number0.2
Optional
smoothness?: number0.2
Optional
circle?: numberRadius of the circle
Optional
classCSS 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
ellipse?: [number, number] | { Radiuses of the ellipse
Optional
hideHide the marker in the markers list
false
Optional
hoverOverrides the global defaultHoverScale
null
Optional
html?: stringHTML content of the marker
Unique identifier of the marker
Optional
image?: stringPath to an image
Optional
imagePath to an image
Optional
listThe name that appears in the list of markers
tooltip.content
Optional
opacity?: numberOpacity of the marker
1
Optional
orientation?: "front" | "horizontal" | "vertical-left" | "vertical-right"Applies a perspective on the image to make it look like placed on the floor or on a wall (only for imageLayer
)
Optional
path?: stringDefinition of the path
Optional
polygon?: [number, number][] | [string, string][] | number[] | string[]Array of points defining the polygon in spherical coordinates
Optional
polygonArray 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
polylineArray of points defining the polyline in pixel coordinates on the panorama image
Optional
position?: ExtendedPosition | [ExtendedPosition, ExtendedPosition, ExtendedPosition, ExtendedPosition]Position of the marker (required but for polygon
and polyline
)
The array form is used for imageLayer
and videoLayer
Optional
rect?: [number, number] | { Size of the rectangle
Optional
rotation?: string | numberRotation applied to the marker (ignored for polygon
and polyline
)
Optional
scale?: [number, number] | { 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
svgSVG properties to set on the marker (fill, stroke, etc.) (only for SVG markers)
Optional
tooltip?: string | { Configuration of the marker tooltip
{content: null, position: 'top center', className: null, trigger: 'hover'}
Optional
videoPath to a video
Optional
visible?: booleanInitial visibility of the marker
true
Optional
zDrawing order
1
Optional
zoomThe zoom level which will be applied when calling gotoMarker()
method or when clicking on the marker in the list
current zoom level
Generated using TypeDoc
Configuration of a marker