ol/control/Dialog is a convenient vay to display dialog on a map.
-
Dialog has a dropdown or zoom effect
-
You can add your own buttons, listen to the button event to get the one is clicked.
-
A button event with a sumbit button is fired on submit.
-
A button event with a cancel button is fired on closebox hit.
-
The button event returns a list of inputs based on there classes.
-
Use hideOnClick option to close the dialog when clicking the background.