Main Content

Close a Web Map

To programmatically close a web map, use the wmclose function.

When called without an argument, wmclose closes the current web map. You can also specify which web map to close by specifying a handle to the web map. To close all currently open web maps, call wmclose specifying the 'all' argument.

The following example opens several web maps, closes a specific web map, and then closes all open web maps.

  1. Open several web maps, getting the handles to the web maps.

    wm1 = webmap;
    wm2 = webmap('Light Gray');
    wm3 = webmap('Open Street');
  2. Close a specific web map, using its handle.

    wmclose(wm3)
    

  3. Close all web maps that remain open. You can also use the command form: wmclose all.

    wmclose('all')

See Also

|

Related Topics