1.2.1 • Published 1 year ago

@polar/plugin-fullscreen v1.2.1

Weekly downloads
-
License
EUPL-1.2
Repository
github
Last release
1 year ago

Fullscreen

Scope

The fullscreen plugin allows viewing the map in fullscreen mode. It relies solely on the HTML Fullscreen API, where you can also find more about browser support.

Configuration

fullscreen

fieldNametypedescription
renderType'iconMenu' | 'independent'?Whether the fullscreen button is being rendered independently or as part of the IconMenu. Defaults to 'independent'.
targetContainerIdstringSpecifies the html element on which the fullscreen mode should be applied. If the parameter is omitted, it falls back to the configured global field containerId.

Store

State

map.subscribe('plugin/fullscreen/isInFullscreen', (isInFullscreen) => {
  /* Your code. */
})

The returned flag indicates whether the MapClient in in fullscreen mode.

1.2.1

1 year ago

1.2.0

1 year ago

1.1.0

2 years ago

1.0.0

2 years ago