Class: Notification

cercaliagl.Notification


Create a styled notification with a message, severity and a duration.

new Notification(message, severity, duration)

Name Type Description
message string

Message.

severity string

Severity.

  • cercaliagl.Notification.Severity.INFO: Info severity, value: info
  • cercaliagl.Notification.Severity.WARNING: Warning severity, value: warning
  • cercaliagl.Notification.Severity.INFO: Error severity, value: error
duration number (defaults to 5000)

Duration.

Methods

display(mapOrElement)

Display notification on map.

Name Type Description
mapOrElement Map | Element

Map or HTML Element

getElement(){Element}

Get HTML element.

Returns:
HTML Element