Hi Manfred,<br> <br>I got the query working using query templates. But I want to image of the parcel to load in the image map. How would I go that? I bet I need another table by the parcel fields. And have the information load into that table. Then have a link PIN link go to the image in the image map. Here is my code your the html, query templates. Could you help me.<br><br>Albert<br><br><font size="2"><span style="font-family: arial narrow;">header query code</span><br style="font-family: arial narrow;"><span style="font-family: arial narrow;"><br /></span><br style="font-family: arial narrow;"><span style="font-family: arial narrow;"><font size+1><b>Layer: Parcels</b></font></span><br style="font-family: arial narrow;"><br style="font-family: arial narrow;"><span style="font-family: arial narrow;"><table border=1></span><br style="font-family: arial narrow;"><span style="font-family: arial
narrow;"><tr></span><br style="font-family: arial narrow;"><span style="font-family: arial narrow;"><th>shpidx</th></span><br style="font-family: arial narrow;"><span style="font-family: arial narrow;"><th>Pin No.</th></span><br style="font-family: arial narrow;"><span style="font-family: arial narrow;"><th>Section</th></span><br style="font-family: arial narrow;"><span style="font-family: arial narrow;"><th>Township</th></span><br style="font-family: arial narrow;"><span style="font-family: arial narrow;"><th>Range</th></span><br style="font-family: arial narrow;"><span style="font-family: arial narrow;"></tr></span><br style="font-family: arial narrow;"><br style="font-family: arial narrow;"><br style="font-family: arial narrow;"><br style="font-family: arial narrow;"><span style="font-family: arial narrow;">parcels query code</span><br style="font-family: arial narrow;"><span style="font-family:
arial narrow;"><tr></span><br style="font-family: arial narrow;"><span style="font-family: arial narrow;"> <td>[shpidx]</td></span><br style="font-family: arial narrow;"><span style="font-family: arial narrow;"> <td></span><br style="font-family: arial narrow;"><span style="font-family: arial narrow;"><a href="http://[host]/cgi-bin/mapserv?</span><br style="font-family: arial narrow;"><span style="font-family: arial narrow;">mode=indexquerymap&</span><br style="font-family: arial narrow;"><span style="font-family: arial narrow;">qlayer=parcels&</span><br style="font-family: arial narrow;"><span style="font-family: arial narrow;">shapeindex=[shpidx]&</span><br style="font-family: arial narrow;"><span style="font-family: arial narrow;">shpext=[shpext_esc]&</span><br style="font-family: arial narrow;"><span style="font-family: arial narrow;">mapext=shape&</span><br style="font-family: arial
narrow;"><span style="font-family: arial narrow;">map=[map]"></span><br style="font-family: arial narrow;"><span style="font-family: arial narrow;"> [PIN]</span><br style="font-family: arial narrow;"><span style="font-family: arial narrow;"> </a></td></span><br style="font-family: arial narrow;"><span style="font-family: arial narrow;"> <td>[SCT]</td></span><br style="font-family: arial narrow;"><span style="font-family: arial narrow;"> <td>[TWP]</td></span><br style="font-family: arial narrow;"><span style="font-family: arial narrow;"> <td>[RNG]</td></span><br style="font-family: arial narrow;"><span style="font-family: arial narrow;"></tr></span><br style="font-family: arial narrow;"><br style="font-family: arial narrow;"><span style="font-family: arial narrow;">html code</span><br style="font-family: arial narrow;"><span
style="font-family: arial narrow;"><SCRIPT TYPE="text/javascript" LANGUAGE="javascript"></span><br style="font-family: arial narrow;"><span style="font-family: arial narrow;"> function SetSec(){</span><br style="font-family: arial narrow;"><span style="font-family: arial narrow;"> var s = document.the_map.SCT.value;</span><br style="font-family: arial narrow;"><span style="font-family: arial narrow;"> var t = document.the_map.T.value;</span><br style="font-family: arial narrow;"><span style="font-family: arial narrow;"> var r = document.the_map.R.value;</span><br style="font-family: arial narrow;"><br style="font-family: arial narrow;"><span style="font-family: arial narrow;">window.parent.location.href = "http://10.56.67.192/cgi-bin/mapserv?map=/home/mapdata/richland.map&mode=itemquery&mapext=shapes&slayer=parcels&imgxy=309 419&imgext=625173.309834 5085113.091715 718065.960556
5160035.212592&mapshape=&imgshape=&imgbox=&qstring=('[SCT]'='" + s + "' AND '[TWP]'='" + t + "' AND '[RNG]'='" + r + "')&qlayer=parcels&qitem=&shapeindex=&savequery="; </span><br style="font-family: arial narrow;"><span style="font-family: arial narrow;">}</span><br style="font-family: arial narrow;"><span style="font-family: arial narrow;"></SCRIPT></span></font><br><br><b><i>Manfred Meier <m.meier@SPIEKERMANN.DE></i></b> wrote:<blockquote class="replbq" style="border-left: 2px solid rgb(16, 16, 255); margin-left: 5px; padding-left: 5px;"> Hi Albert,<br><br>about the query: your three input fields are named "SCT", "T" and "R". <br>They sit in a form named "the_map" (if you used this name). The GO <br>button is no submit button. It does not submit the form, it calls the <br>javascript function "SetSec()" if you clicking it.<br><br>This function gets the values of the three input fields and stores them <br>in three variables
"s", "t" and "r". Then it redirects the browser by <br>setting ...location.href property to a new constructed url.<br><br>As you can see in Lawrence's original code, this url contains the <br>query-string for the mapserver like "[TWP]="+t where the value of "t" is <br>filled in. Sorry if this is trivial: the names in [] must match the <br>fieldnames in your data-source (perhaps dbf-file).<br><br>Yesterday I had a problem in my example to construct this query. Dave <br>Fawcett wrote on my mail the following example:<br><br> http ... &qstring=([ZELNR]=1405)<br><br>I had some '-characters around it like qstring=('[ZELNR]'='1405')<br> and got not the correct result. So you have to experiment a bit I think.<br><br>If you are unsure if your url is built correct you can do the following: <br>(from Lawrence's code)<br><br> function SetSec(){<br> var s = document.the_map.SEC.value;<br> var t = document.the_map.T.value;<br> var r =
document.the_map.R.value;<br><br> //Store the new URL into a vraiable and show it before sending it<br> var u = <br>"/JasperMaps/cgi-bin/mapserv.exe?&program=%2FJasperMaps%2Fcgi-bin%2Fmapserv.exe&map=C%3A%5CInetPub%5Cwwwroot%5CMapdocs%5CLandCorner.map&zoomsize=2&layers=ortho+Monuments+LandCorners+Water+Shields+Highways+Roads+County+Sections+Quarter+Towns+Township&mode=itemquery&mapext=shapes&slayer=Sections&imgxy=320+240&imgext=1680507.39+547052.00+1844030.00+680312.51&mapshape=&imgshape=&imgbox=&qstring=('[SECTION_]'='"<br> alert (u); // show it in a message box<br>window.parent.location.href = u;<br>}<br><br>Manfred<br><br>Albert Anderson schrieb:<br><br>> Hi Manfred,<br>> <br>> Thanks. I got my panning working. Thanks for explaining it. I think I <br>> understand it now that they all have to be one name. Thanks for your <br>> help. I am still working on the query.<br>> <br>>
Thanks,<br>> Albert<br>> <br>> Manfred Meier <m.meier@spiekermann.de> wrote:<br>> <br>> Hi Albert,<br>> <br>> I copied your html code to my local server and use it for the template<br>> in the mapfile.<br>> <br>> The result is: the Map Tools, Map Layers, Reference Map, legend titles<br>> appear. The icons for the radio buttons do not appear but that's no<br>> problem.<br>> <br>> The map appears (with some data of mine). If I click on one of the map<br>> tools, and then into the map, then their is the correct effect. The map<br>> zooms in or out or recenters.<br>> <br>> When I click on the corners of the map margin (for pan), then I get a<br>> javascript error because "document.mapserv" is undefined.<br>> <br>> When I click on the GO button (which took a time to find it) I get<br>> another javascript error, because "document.corner" is undefined. In<br>>
Lawrence's source code you see that "Corner" is the name of a form.<br>> Your go-Button is in the form "the_form".<br>> <br>> Then I have changed "the_form" to "the_map" and i have changed<br>> "mapserv"<br>> in "document.mapserv" to "the_map". Then i deleted the line<br>> "document.the_map.mode[0].checked=true" because this has an error<br>> anywhere.<br>> <br>> Now the pan functions on the corner of the image are working. Not<br>> perfect but they do. They pan an zoom. But I think this a not a big<br>> problem to solve.<br>> <br>> I have changed the "document.corner" into document.the_map. So now the<br>> Go button kind of works. It produces a fresh page.<br>> <br>> And I have changed the [program] placeholders to my actual url<br>> because I<br>> don't know where to set this value.<br>> <br>> Try to do the changes and test every step.<br>>
<br>> I'm now out. Perhaps til tomorrow.<br>> <br>> Manfred<br>> <br>> <br>> <br>> <br>> <br>> <br>> <br>> <br>> <br>> <br>> <br>> <br>> Albert Anderson schrieb:<br>> <br>> > Hi Manfred Meier,<br>> ><br>> > I dont know about the errors cause I do not for sure how to open the<br>> > html code direct in the browser. I have javascript for panning<br>> arrows<br>> > around the image that I couldnt get working.<br>> ><br>> > For the go button to I have to set some sort of vaule to that? I<br>> dont kow.<br>> ><br>> > Thanks,<br>> > Albert<br>> ><br>> > Manfred Meier wrote:<br>> ><br>> > Hi Albert,<br>> ><br>> > when I load the html code into the browser then I get javascript<br>> errors<br>> > (status line of
internet explorer) because document.the_map and<br>> > document.mapserv are undefined. "document.the_map" is used in the<br>> > javascript function set_Mode which is called in the onload event.<br>> > Do you get these errors too?<br>> ><br>> > Maybe they come only here because I opened the html code direct<br>> in the<br>> > browser.<br>> ><br>> > Manfred<br>> ><br>> ><br>> > Albert Anderson schrieb:<br>> ><br>> > > Hi Lawrence,<br>> > ><br>> > > I tried copying your code and changing out your information to fit<br>> > > mine. Its not working to well. My button isnt doing anything.<br>> > Here is<br>> > > my html code. Maybe you can look at it? I dont know what I am<br>> doing.<br>> > > Thanks, Albert<br>> > ><br>>
> > .....<br>> ><br>> ><br>> ><br>> ><br>> ------------------------------------------------------------------------<br>> > Yahoo! Messenger with Voice. Make PC-to-Phone Calls<br>> ><br>> > to the US (and 30+ countries) for 2�/min or less.<br>> <br>> <br>> ------------------------------------------------------------------------<br>> How low will we go? Check out Yahoo! Messenger�s low PC-to-Phone call <br>> rates. <br>> <http: //us.rd.yahoo.com/mail_us/taglines/postman8/*http://us.rd.yahoo.com/evt="39663/*http://voice.yahoo.com"><br></http:></m.meier@spiekermann.de></blockquote><br><p>
<hr size=1>Do you Yahoo!?<br> Next-gen email? Have it all with the <a href="http://us.rd.yahoo.com/evt=42241/*http://advision.webevents.yahoo.com/handraisers"> all-new Yahoo! Mail Beta.</a><p> __________________________________________________<br>Do You Yahoo!?<br>Tired of spam? Yahoo! Mail has the best spam protection around <br>http://mail.yahoo.com