Interface ZoomControls

Options of the zoom controls.

Hierarchy

  • ZoomControls

Properties

color?: "black" | "white"

Set the color of the zoom controls. Default : 'black'.

customZoomInElement?: ((element) => void)

Type declaration

    • (element): void
    • Function to customize the button (add classes or inline style, inner HTML, ...). If set, the default icon (and color parameter) is ignored.

      Parameters

      • element: HTMLButtonElement

      Returns void

customZoomOutElement?: ((element) => void)

Type declaration

    • (element): void
    • Function to customize the button (add classes or inline style, inner HTML, ...). If set, the default icon (and color parameter) is ignored.

      Parameters

      • element: HTMLButtonElement

      Returns void

position?: "top-left" | "top-right"

Set the position of the zoom controls. Default : 'top-right'.

visible?: boolean

Set the visibility of the default zoom controls. Default : true.

Generated using TypeDoc