In addition to clearing the selection on the map, this command will also cause the Infobar to collapse if the Auto Expand/Collapse Infobar option is set. IMPORTANT NOTE: the function on this page is added as a custom command button to the map toolbar. See that article for how to add such a button. Configure the button for the target Web Layout as follows: Under the Settings tab, enter the following (you can change these values if you wish):
Under the Additional Parameters tab, enter the following under Script to invoke:
For builds 2093 or before, use parent.ClearSelection(); instead. You may wish to remove the built-in "Clear Selection" command included in the default toolbar unless you want to also have a Clear Selection command that ignores the Auto Expand/Collapse Infobar option. [Last updated for version 2904 (04/2013)]
|