Photo Sphere Viewer
    Preparing search index...

    Class PlanPlugin

    Adds a map on the viewer

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

    component: PlanComponent
    viewer: Viewer
    configParser: ConfigParser<PlanPluginConfig, PlanPluginConfig> = getConfig
    id: "plan" = 'plan'

    Unique identifier of the plugin

    readonlyOptions: (keyof PlanPluginConfig)[] = ...
    VERSION: string = PKG_VERSION

    Expected version of the core DO NOT USE on custom plugins

    Methods

    • Type Parameters

      • T extends "select-hotspot" | "view-changed"

        the name of event

      • E extends PlanPluginEvents & { type: T }

        the class of the event

      Parameters

      • type: T
      • callback: EventListenerObject | ((e: E) => void)
      • Optionaloptions: boolean | AddEventListenerOptions

      Returns void

    • Type Parameters

      • T extends "select-hotspot" | "view-changed"

        the name of event

      • E extends PlanPluginEvents & { type: T }

        the class of the event

      Parameters

      • type: "select-hotspot" | "view-changed"
      • callback: EventListenerObject | ((e: E) => void)
      • Optionaloptions: boolean | EventListenerOptions

      Returns void

    • Update options

      Type Parameters

      • T extends
            | "size"
            | "position"
            | "pinImage"
            | "pinSize"
            | "spotStyle"
            | "hotspots"
            | "minimizeOnHotspotClick"
            | "bearing"
            | "coordinates"

      Parameters

      Returns void