Optional
anchor?: stringDefines where the marker is placed toward its defined position
Optional
autoplay?: booleanAutoplay of videoLayer
markers
Optional
chromaWill make a color of the image/video transparent (only for imagerLayer
, videoLayer
)
Optional
color?: ColorRepresentation | { Optional
similarity?: numberOptional
smoothness?: numberOptional
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
elementExiting DOM element
Optional
ellipse?: [number, number] | { Radiuses of the ellipse
Optional
hideHide the marker in the markers list
Optional
hoverOverrides the global defaultHoverScale
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
Optional
opacity?: numberOpacity of the marker
Optional
orientation?: Optional
path?: stringDefinition of the path
Optional
polygon?: 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?: 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 | number | { 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?: [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
Optional
videoPath to a video
Optional
visible?: booleanInitial visibility of the marker
Optional
zDrawing order
Optional
zoomThe zoom level which will be applied when calling gotoMarker()
method or when clicking on the marker in the list
Configuration of a marker