Class: Dialog

ol.control. Dialog

Application dialog


new Dialog(options)

Parameters:
Name Type Description
options *
Properties
Name Type Description
className string
map ol.Map

the map to place the dialog inside

target Element

target to place the dialog

zoom boolean

add a zoom effect

closeBox boolean

add a close button

hideOnClick boolean

close dialog when click the background

Extends

Methods


hide()

Close the dialog


isOpen()

The dialog is shown

Returns:

true if a dialog is open

Type
bool

open()

Open the dialog


setContent(options)

Set the dialog content

Parameters:
Name Type Description
options *
Properties
Name Type Description
content Element | String

dialog content

title string

title of the dialog

className string

dialog class name

buttons Object

a key/value list of button to show


show(options)

Show a new dialog

Parameters:
Name Type Description
options * | Element | string

options or a content to show

Properties
Name Type Description
content Element | string

dialog content

title string

title of the dialog

buttons Object

a key/value list of button to show