Class: Notification

ol.control. Notification


new Notification( [options], className, hideOnClick, closeBox)

Control overlay for OL3 The overlay control is a control that display an overlay over the map

Parameters:
Name Type Argument Description
options Object <optional>

Control options.

className string

class of the control

hideOnClick boolean

hide the control on click, default false

closeBox boolean

add a closeBox to the control, default false

Extends

Methods


hide()

Remove a notification on the map


show(what [, duration])

Display a notification on the map

Parameters:
Name Type Argument Default Description
what string | node | undefined

the notification to show, default get the last one

duration number <optional>
3000

duration in ms, if -1 never hide


toggle( [duration])

Toggle a notification on the map

Parameters:
Name Type Argument Default Description
duration number <optional>
3000

duration in ms