[Qgis-developer] QWC first implementation of configurable search results output

Alessandro Pasotti apasotti at gmail.com
Wed Jan 8 09:51:52 PST 2014


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.

I've published it in a branch (still work in progress), please give me some

This is what I've done so far:

1. added an optional config var in GlobalOptions.js
var mapSearchPanelOutputRegion = 'popup' ; // Possible values:
default,right,bottom,popup, see

2. decoupled the search output from QGIS.SearchPanel, the search output is
now implemented with events and  listeners:

3. added right and bottom regions, hidden and collapsed by default, these
panels are automatically activated when mapSearchPanelOutputRegion is
"right" or "bottom"

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.

The default behaviour should be exactly the old one: search results under
the form in left panel.

This is the branch URL:

Alessandro Pasotti
w3:   www.itopen.it
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-developer/attachments/20140108/34c0d24c/attachment.html>

More information about the Qgis-developer mailing list