Options
All
  • Public
  • Public/Protected
  • All
Menu

Control for the IIIF layer
Create a toolbar that allows you to control the layer's options.

const control = new IIIFControl(layer, options);
control.addTo(map);

Hierarchy

  • Control
    • IIIFControl

Index

Constructors

constructor

Properties

Private _container

_container: HTMLElement

The created html div container that will contains the toolbar

layer

layer: IIIFLayer

The IIIF layer on which the control takes affect

options

Options of the control (initialized by super)

Methods

Private createActions

  • createActions(container: HTMLElement, title: string, className: string, innerHTML: string, actions: { className: string; fn: () => void; innerHTML: string; title: string }[]): void
  • Create a button

    Parameters

    • container: HTMLElement
    • title: string
    • className: string
    • innerHTML: string
    • actions: { className: string; fn: () => void; innerHTML: string; title: string }[]

    Returns void

Private createButton

  • createButton(container: HTMLElement, title: string, className: string, innerHTML: string, fn: () => void): HTMLElement
  • Create a button

    Parameters

    • container: HTMLElement
    • title: string
    • className: string
    • innerHTML: string
    • fn: () => void
        • (): void
        • Returns void

    Returns HTMLElement

onAdd

  • onAdd(map: Map): HTMLElement
  • Add the control to Leaflet map

    Parameters

    • map: Map

    Returns HTMLElement

Legend

  • Constructor
  • Property
  • Method
  • Private property
  • Private method
  • Property
  • Protected method

Generated using TypeDoc