[Geomoose-users] Itemquery not functioning
t faustino
geomatrix3d at gmail.com
Wed Aug 4 14:48:30 EDT 2010
I've been trouble shooting this for a few days now and could really use some
help.
I'm not getting any firebug errors and shp2img is showing parcels map is
correct; a URL call to both parcels map and itemquery map is returning a
call back as intended on both.
LAYER
NAME 'Parcels'
TYPE POLYGON
DATA 'parcels.shp'
STATUS DEFAULT
---------------------------------
INDEX.HTML
<div id="CustomForms">
<div id="pinsearch">
<font color="black"><b>Search for
Parcel:</b></font><br/>
<input name="id"/><input type="submit" value="Search"/>
<input type="hidden" name="map" value="/var/www/vhosts/
mysite.org/httpdocs/geomoose/maps_countydemo/itemquery.map"/>
<input type="hidden" name="mode" value="nquery"/>
<br><i><b>EnterPIN</b><br />
</div>
-----------------------------------
xml
<service title="Search for Parcels" selectable="false" default="true"
locked="true" div="pinsearch" icon="shared/images/toolbar/find.jpg"
highlight="shared/images/toolbar/find_selected.jpg" >
<url>/cgi-bin/mapserv</url>
<input type="hidden" name="map" value="./itemquery.map"/>
<input type="hidden" name="mode" value="nquery"/>
<input type="hidden" name="layer" value="pinSearch"/>
<input type="user" name="id" title="Zoom to Parcel#:"/>
</service>
----------------------------------
ITEMQUERY.MAP
LAYER # Parcels Polygon Layer
NAME 'Parcels'
DATA 'landrecords/parcels.shp'
STATUS DEFAULT
TYPE POLYGON
METADATA
qstring_validation_pattern '.'
END
TEMPLATE 'landrecords/itemquery_parcels.html'
FILTERITEM 'parcel_no'
FILTER /^%id%/ #begins with search regular expression
---------------------------------
ITEMQUERY_PARCELS.HTML
<--MapServer Template-->
<tr>
<td>[parcel_no]</td>
<td>[Comments]</td>
<td><a href="javascript:Map.itemQueryLayer('Highlight', 'Parcels',
'parcel_no', '[parcel_no]', '/var/www/vhosts/
mysite.org/httpdocs/geomoose/maps_countydemo/select.map');
Map.zoomToViewString(([shpminx]-400)+','+([shpminy]-400)+','+([shpmaxx]+400)+','+([shpmaxy]+400))"><img
src="shared/images/view.png" border="0" title="Click to Zoom Map to
Parcel"></img></a></td>
</tr>
--
"If one advances confidently in the direction of his dreams, and endeavors
to live the life which he has imagined, he will meet with a success
unexpected in common hours." ~Thoreau
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/geomoose-users/attachments/20100804/8056187e/attachment.html
More information about the Geomoose-users
mailing list