Adds a minimap on the viewer

Hierarchy (View Summary)

Constructors

Properties

component: MapComponent
viewer: Viewer
id: "map" = 'map'

Unique identifier of the plugin

readonlyOptions: (keyof MapPluginConfig)[] = ...
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 MapPluginEvents & { 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 MapPluginEvents & { type: T }

      the class of the event

    Parameters

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

    Returns void

  • Changes the image of the map

    Parameters

    • url: string
    • Optionalcenter: Point

      Also change the position on the map

    • Optionalrotation: string | number

      Also change the image rotation

    Returns void

  • Update options

    Type Parameters

    • T extends
          | "center"
          | "size"
          | "position"
          | "rotation"
          | "shape"
          | "overlayImage"
          | "pinImage"
          | "pinSize"
          | "coneColor"
          | "coneSize"
          | "spotStyle"
          | "static"
          | "minZoom"
          | "maxZoom"
          | "hotspots"
          | "minimizeOnHotspotClick"

    Parameters

    Returns void