VisiOmatic web client

Class

FullScreen

Extends
  • leaflet.Control

new FullScreen(optionsopt) → {FullScreen}

Create a new full-screen toggle button.

Parameters

  • options object <optional>

    Options.

    Properties

    • title string <optional>
      'Toggle full screen mode'

      Title of the panel.

    • position 'bottomleft' | 'bottomright' | 'topleft' | 'topright' <optional>
      'topleft'

      Position of the full-screen button.

    • forceSeparateButton boolean <optional>
      false

      Sidebar button separate from zoom control?

Returns

  • FullScreen

    Full screen toggle control.

Source

Methods

privatestatic

_addButton(titleopt, className, container, fn, context) → {object}

Add a button

Parameters

  • title string <optional>

    Title of the button.

  • className string

    Class name of the button.

  • container object

    Element containing the button.

  • fn function

    Callback function to call when the button is pressed.

  • context object

    Context (this) for the callback function.

Returns

  • object

    New link (button) element.

Source

static

onAdd(map) → {object}

Add this full screen toggle to the specified map.

Parameters

  • map L.Map

Returns

  • object

    Element containing the full screen toggle button.

Source