Setting the Active Selection With the Web API
 
 

To set the run-time map selection using a query, perform the following steps: