Close a Web Map
To programmatically close a web map, use the
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
The following example opens several web maps, closes a specific web map, and then closes all open web maps.
Open several web maps, getting the handles to the web maps.
wm1 = webmap; wm2 = webmap('Light Gray'); wm3 = webmap('Open Street');
Close a specific web map, using its handle.
Close all web maps that remain open. You can also use the command form: