1.2.3 • Published 10 months ago

@polar/plugin-fullscreen v1.2.3

Weekly downloads
-
License
EUPL-1.2
Repository
github
Last release
10 months 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'.
targetContainerIdstring?Specifies 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.

For details on the displayComponent attribute, refer to the Global Plugin Parameters section of @polar/core.

Example configuration:

fullscreen: {
  renderType: 'iconMenu',
  targetContainerId: 'mapContainer'
}

Store

State

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

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

1.2.3

10 months ago

1.2.2

12 months ago

1.2.1

2 years ago

1.2.0

2 years ago

1.1.0

2 years ago

1.0.0

2 years ago