<div dir="ltr">Hi,<div><br></div><div>as discussed a few days ago, I'm trying to implement a configurable output for search results, it's now possible to show search results in left panel (default), right panel, bottom panel and in a separate window.</div>
<div><br></div><div>I've published it in a branch (still work in progress), please give me some feedback.<br clear="all"><div><br></div><div>This is what I've done so far:</div><div><br></div><div>1. added an optional config var in GlobalOptions.js</div>
<div>var mapSearchPanelOutputRegion = 'popup' ; // Possible values: default,right,bottom,popup, see</div><div><a href="https://github.com/elpaso/QGIS-Web-Client/blob/configurable_layout/site/js/GlobalOptions.js#L197">https://github.com/elpaso/QGIS-Web-Client/blob/configurable_layout/site/js/GlobalOptions.js#L197</a><br>
</div><div><br></div><div>2. decoupled the search output from QGIS.SearchPanel, the search output is now implemented with events and  listeners:</div><div><a href="https://github.com/elpaso/QGIS-Web-Client/blob/configurable_layout/site/js/WebgisInit.js#L815">https://github.com/elpaso/QGIS-Web-Client/blob/configurable_layout/site/js/WebgisInit.js#L815</a><br>
</div><div><a href="https://github.com/elpaso/QGIS-Web-Client/blob/configurable_layout/site/js/WebgisInit.js#L890">https://github.com/elpaso/QGIS-Web-Client/blob/configurable_layout/site/js/WebgisInit.js#L890</a><br></div>
<div><br></div><div>3. added right and bottom regions, hidden and collapsed by default, these panels are automatically activated when mapSearchPanelOutputRegion is "right" or "bottom"</div><div><br></div>
<div>4. added an Ext alert modal in case of no results. I'm still looking for a better solution, I'm sure that the user should be warned about "no records found" but I'd rather prefer a spotlight message to a modal alert. </div>
<div><br></div><div><br></div><div>The default behaviour should be exactly the old one: search results under the form in left panel.</div><div><br></div><div>This is the branch URL:</div><div><a href="https://github.com/elpaso/QGIS-Web-Client/tree/configurable_layout">https://github.com/elpaso/QGIS-Web-Client/tree/configurable_layout</a><br>
</div><div><br></div><div><br></div>-- <br>Alessandro Pasotti<br>w3:   <a href="http://www.itopen.it">www.itopen.it</a>
</div></div>