For AI agents: a documentation index is available at /llms.txt. Markdown versions of all pages are available by appending .md to any URL.

Class ImageViewerMarkerMaptiler

Methods mixed in to other classes for event capabilities.

Hierarchy (View Summary)

Index

Constructors

Methods

  • Adds a class name to the ImageViewerMarker.

    Parameters

    • className: string

      The class name to add to the ImageViewerMarker.

    Returns ImageViewerMarker

    The ImageViewerMarker instance.

  • Gets the element of the ImageViewerMarker.

    Returns HTMLElement

    The element of the ImageViewerMarker.

  • Gets the offset of the ImageViewerMarker.

    Returns Point

    The offset of the ImageViewerMarker.

  • Gets the popup of the ImageViewerMarker.

    Returns PopupMLGL

    The popup of the ImageViewerMarker.

    Popup

  • Gets the position of the ImageViewerMarker.

    Returns [number, number]

    The position of the ImageViewerMarker.

  • Gets the rotation of the ImageViewerMarker.

    Returns number

    The rotation of the ImageViewerMarker.

  • Checks if the ImageViewerMarker is draggable.

    Returns boolean

    True if the ImageViewerMarker is draggable, false otherwise.

  • Checks if the ImageViewerMarker is within the image bounds.

    Returns boolean

    True if the ImageViewerMarker is within the image bounds, false otherwise.

  • Returns a true if this instance of Evented or any forwardeed instances of Evented have a listener for the specified type.

    Parameters

    • type: "dragstart" | "drag" | "dragend"

      The event type

    Returns boolean

    true if there is at least one registered listener for specified event type, false otherwise

  • Adds an event listener to the ImageViewerMarker.

    Parameters

    • event: "dragstart" | "drag" | "dragend"

      The event to add the listener to.

    • listener: (e: ImageViewerMarkerEvent) => void

      The listener to add.

    Returns Subscription

    The ImageViewerMarker instance.

  • Adds a listener that will be called only once to a specified event type.

    The listener will be called first time the event fires after the listener is registered.

    Type Parameters

    • T extends "dragstart" | "drag" | "dragend"

    Parameters

    • type: T

      The event type to listen for.

    Returns Promise<ImageViewerMarkerEventType[T]>

    a promise that resolves with the event

  • Adds a listener that will be called only once to a specified event type.

    The listener will be called first time the event fires after the listener is registered.

    Type Parameters

    • T extends "dragstart" | "drag" | "dragend"

    Parameters

    • type: T

      The event type to listen for.

    • listener: (event: ImageViewerMarkerEventType[T]) => void

      The function to be called when the event is fired the first time.

    Returns this

    this when a listener is provided

  • Removes the ImageViewerMarker from the ImageViewer and cleans up the event listeners.

    Returns ImageViewerMarker

    The ImageViewerMarker instance.

  • Removes a class name from the ImageViewerMarker dom element.

    Parameters

    • className: string

      The class name to remove from the ImageViewerMarker.

    Returns ImageViewerMarker

    The ImageViewerMarker instance.

  • Sets the draggable state of the ImageViewerMarker.

    Parameters

    • draggable: boolean

      The draggable state of the ImageViewerMarker.

    Returns ImageViewerMarker

    The ImageViewerMarker instance.

  • Sets the opacity of the ImageViewerMarker.

    Parameters

    • Optionalopacity: string

      The opacity of the ImageViewerMarker.

    • OptionalopacityWhenCovered: string

      The opacity of the ImageViewerMarker when covered.

    Returns ImageViewerMarker

    The ImageViewerMarker instance.

  • Sets the position of the ImageViewerMarker.

    Parameters

    • px: [number, number]

      The position of the ImageViewerMarker in image pixels.

    Returns ImageViewerMarker

    The ImageViewerMarker instance.

  • Sets the rotation of the ImageViewerMarker.

    Parameters

    • rotation: number

      The rotation of the ImageViewerMarker.

    Returns ImageViewerMarker

    The ImageViewerMarker instance.

  • Sets if subpixel positioning is enabled for the ImageViewerMarker.

    Parameters

    • subpixelPositioning: boolean

      The subpixel positioning of the ImageViewerMarker.

    Returns ImageViewerMarker

    The ImageViewerMarker instance.

  • Toggles a class name on the ImageViewerMarker dom element.

    Parameters

    • className: string

      The class name to toggle on the ImageViewerMarker.

    Returns ImageViewerMarker

    The ImageViewerMarker instance.

Was this helpful?