publishSelection
The publishSelection method triggers the UI framework to handle the user’s selection. Typically, the method is called when the user checks or unchecks a filter and selects one item in the map/list. The UI framework will find the best matched UI extension based on the URL in the message and page configuration. It will then get or create an instance of the UI extension and call the setModel of the UI extension. For example, in the custom filter, the user can call Library.publishSelection to indicate that the filter is selected or unselected. The corresponding map layer will be created or destroyed.
Syntax
/**
* summary:
* Publish user selection
* @param message: Object
* {
* "url": "<url of the selected data>",
* "isCollection": true/false,
* "query": "<the query string>",
* "enabled": true/false,
* "parameters": custom parameters, for example, {
* color: red
* title: title
* }
* }
*/
publishSelection: function(message){