Proxy interface for all plugin events. pluginEvents.LEAFLET_MAP.LOADED.addEventListener(e => console.log(e))
Set whether display of mouse coordinates is allowed in the viewer
Specifies whether the standard set of tools (in the tool palette) are enabled.
set the keyboard focus to be on the viewer element
get the current layout state of the overview map window
Is the viewer currently in fullscreen display mode
Is the viewer allowed to enter fullscreen display mode
Whether display of mouse coordinates is allowed in the viewer
Whether the coordinates of the cursor are currently being displayed.
In some rare circumstances it may be necessary to force the viewer to refresh/update the view after making a change. Almost all changes made through the API will call this internally if required.
Set the background colour of the main viewer window.
A standard CSS hex colour string (e.g. #ff5578
)
set the cursor style for the viewer. Use css cursor style names
Request the viewer to switch to fullscreen display mode. Will be ignored if fullscreen is not allowed.
Set the layout state of the overview map window
valid values are: "full", "half", "normal", or "minimized"
// Show an info message that hides after 2 seconds
api.viewer.showInfoMessage("Hello World", 2)
Shows a message with a close button that will stay on screen until dismissed by the user
// Show an info message that hides after 2 seconds
api.viewer.showModalMessage("Hello World")
Show the coordinates of the cursor. Will be ignored if EnableMouseCoordinates is false
listener receives isFullscreen
- a boolean value indicating if the viewer is in the fullscreen state
api.viewer
The viewer API is for interacting with the viewer UI components and layout.