Skip to content

Latest commit

 

History

History
22 lines (16 loc) · 508 Bytes

File metadata and controls

22 lines (16 loc) · 508 Bytes

Close the map dialog.

Description

Close the map dialog when the map is full screen.

The MAP_CLOSE event raises when the map dialog is closed.

If you call the Map.showDialog() from the embedded map, the map goes back to the same position when the dialog is closed.


code

var button = document.getElementById("button");
button.addEventListener("click", function() {
  map.showDialog();

  setTimeout(function() {
    map.closeDialog();
  }, 10000);
});