[Geomoose-users] Search issue - no results
CoFIS Web
coffee at uni-bonn.de
Wed Dec 16 09:37:59 EST 2009
Dan Little schrieb:
> Getting the new query service will require pulling from SVN/trunk as it is technically a 2.2 feature.
Too bad, I rather stick with 2.0.1 for the official version.
Anyway, no luck using the patterns in the demo from the downladable
packages for GM 2.0.1. The query still does not return any results.
One thing that I find strange is, that if I mess up the
<url>php/itemquery.php</url> to something like
<url>php/nothing.php</url>, GM does not return an error but the "No
results found for your query!". So I think it doesn´t even call the
service (Yes, I cleared the cache and reloaded FF).
Nils
My mapbook service now looks like
<service name="search_admin">
<url>php/itemquery.php</url>
<step type="input">
<input type="select" name="qitem" title="Search by:">
<option value="wereda">Wereda</option>
<option value="region">Region</option>
</input>
<input type="user" name="qstring" title=""/>
<input type="hidden" name="layer" value="administration/all"/>
<input type="hidden" name="zoom_to_first" value="false"/>
<input type="hidden" name="highlight" value="true"/>
</step>
</service>
All the rest is still the same:
<!-- mapbook catalog -->
<tool name="search_admin" title="Search" type="service"
service="search_admin" selectable="false"/>
In my mapfile in
METADATA
'identify_record' 'tool_identify/wereda_identify.html'
'itemquery' 'tool_select/admin_04_wereda_itemquery.html'
#'itemquery-filteritem' 'region'
'itemquery-filter' '/.*[qstring].*/i'
'qstring_validation_pattern' '.'
END #METADATA
admin_04_wereda_itemquery.html says
<!-- MapServer Template -->
<tr>
<td>[wereda]</td>
<td>[region]</td>
<td><a href="javascript:Map.itemQueryLayer('Highlight', 'Wereda',
'Region', '[region]',
'/srv/coffeeshop/map/tool_select/admin_04_wereda_itemquery.html');
Map.zoomToViewString(([shpminx]-500)+','+([shpminy]-500)+','+([shpmaxx]+500)+','+([shpmaxy]+500))"><img
src="images/toolbar/zoomto.png" border="0" title="Click here to zoom
selected wereda"></a></td>
</tr>
More information about the Geomoose-users
mailing list