Hi Manfred,<br><br> I want the parcel link when you click it to load into the image page. like this site<br>http://www.houstonengineeringinc.com/mapmorph_demo/mapserv.html Here are the screen shots. I dont want the query results to show up in a new page or the image parcel. I want it to all be in the html page. <br><br>Thanks,<br>Albert<br><br>~html~ <br><br> <span class="style20">Map Tools </span> <table border="0" height="55" width="170"> <tbody><tr> <td height="51" width="159"> <!-- Map Tools here --> <div class="style1"> <input name="zoomdir" value="0" checked="checked" type="radio"> <img src="http://10.56.67.192/images/panning.gif" height="25" width="25"> <input name="zoomdir" value="1" type="radio"> <img src="http://10.56.67.192/images/zoomin.gif" height="25" width="25"> <input name="zoomdir"
size="1" value="-1" type="radio"> <img src="http://10.56.67.192/images/zoomout.gif" height="25" width="25"> </div></td> </tr> </tbody></table> <!-- Map Layer table --> <table bgcolor="#e7a500" border="0" height="30" width="164"> <tbody><tr> <td height="26" width="152"><div align="center"><span class="style20">Map Layers </span></div></td> </tr> </tbody></table> <table border="0" height="272" width="170"> <tbody><tr> <td height="268" width="159"><font color="black"><span class="style2"><u>Boundaries</u></span></font><br> <span class="style4"> <input name="layer2" value="boundary" checked="checked" type="checkbox"> County <br> <input name="layer2" value="townships" type="checkbox"> Township<br> <input name="layer2" value="sections" checked="checked"
type="checkbox"> Section</span><br> <span class="style4"> <input name="layer2" value="parcels" checked="checked" type="checkbox"> Parcels <em><a href="http://10.56.67.192/cgi-bin/mapserv?program=mapserv&map=/home/mapdata/richland.map&mapext=625173.309834%205085113.091715%20718065.960556%205160035.212592&layers=aerial%20richland%20boundary%20cities%20roads%20sections%20rivers%20lakes%20railroad%20parcels&zoomsize=1#parel_search">(Search)</a><br> <input name="layer2" value="cities" checked="checked" type="checkbox"> </em>City </span> <br><span class="style2"><u>Environment</u></span><br> <span class="style4"> <input name="layer" value="rivers" checked="checked" type="checkbox"> Rivers <br> <input name="layer" value="lakes" checked="checked" type="checkbox"> Lakes </span><br> <font
color="red"> </font><span class="style2"><u>Transportation</u></span><br> <span class="style4"> <input name="layer" value="railroad" checked="checked" type="checkbox"> Railroad <br> <input name="layer" value="roads" checked="checked" type="checkbox"> Roads</span><br> <span class="style1"><span class="style2"><span class="style6"><u>Backgrounds</u></span></span><br> <span class="style4"> <input name="layer" value="aerial" checked="checked" type="checkbox"> Aerial Photos<br> <span class="style17"> (2003 FSA-NAIP) </span></span></span> </td> </tr> </tbody></table> <div> </div> <div> </div> <!-- Map Image Table --> <table align="left" border="0" cellpadding="0"
cellspacing="0" height="460" width="368"> <tbody> <tr> <!-- Panning Arrows Images --> <td align="left" bgcolor="#e7a500" height="23" valign="top" width="29"><a href="javascript:pan('nw')"><img src="http://10.56.67.192/images/cornerarrow5.gif" alt="pan nw" style="border-style: none;" height="25" width="25"></a></td> <td align="center" bgcolor="#e7a500" valign="top"> <div align="center"><a href="javascript:pan('n')"><img src="http://10.56.67.192/images/cornerarrow2.gif" alt="pan north" style="border-style: none;" height="25" width="25"></a></div></td> <td align="right" bgcolor="#e7a500" valign="top" width="30"><a href="javascript:pan('ne')"><img src="http://10.56.67.192/images/cornerarrow6.gif" alt="pan ne" style="border-style: none;" height="25" width="25"></a></td> </tr> <tr> <td align="left" bgcolor="#e7a500" valign="middle"><a href="javascript:pan('w')"><img
src="http://10.56.67.192/images/cornerarrow1.gif" alt="pan west" style="border-style: none;" height="25" width="25"></a></td> <td class="mapappmidaln" align="center" height="413" valign="middle" width="309"> <!-- calling for map here --> <input name="img" src="http://10.56.67.192/tmp/Richland11553122853452.jpg" border="1" height="417" type="image" width="309"></td> <td align="right" bgcolor="#e7a500" valign="middle"><div align="left"><a href="javascript:pan('e')"><img src="http://10.56.67.192/images/cornerarrow3.gif" alt="pan east" style="border-style: none;" height="25" width="25"></a></div></td> </tr> <tr> <td align="left" bgcolor="#e7a500" height="21" valign="bottom"><a href="javascript:pan('sw')"><img src="http://10.56.67.192/images/cornerarrow8.gif" alt="pan sw" style="border-style: none;" height="25" width="25"></a></td> <td align="center"
bgcolor="#e7a500" valign="bottom"> <div align="center"><a href="javascript:pan('s')"><img src="http://10.56.67.192/images/cornerarrow3gif.gif" alt="pan south" style="border-style: none;" height="25" width="25"></a></div></td> <td align="right" bgcolor="#e7a500" valign="bottom"><a href="javascript:pan('se')"><img src="http://10.56.67.192/images/cornerarrow7.gif" alt="pan se" style="border-style: none;" height="25" width="25"></a></td> </tr></tbody></table> <!-- Reference Map table --> <table border="0" height="396"> <tbody><tr> <td height="392"><table bgcolor="#e7a500" border="0" height="30" width="177"> <tbody><tr> <td height="26" width="171"><div class="style20" align="center">Reference Map </div></td> </tr>
</tbody></table> <table align="center" border="0" height="169" width="143"> <tbody><tr> <!-- calling reference map --> <td height="165" width="137"><img src="http://10.56.67.192/tmp/Richlandref11553122853452.jpg" height="152" width="136"></td> </tr> </tbody></table> <div> <!-- scale bar --> <span class="style5">Map Scale = 1: 852161.463656<br> </span> <span class="style5">Latitude: -1.000000<br> Longitude: -1.000000</span></div> <table bgcolor="#e7a500" border="0" height="30"
width="177"> <tbody><tr> <td height="26" width="171"><div class="style20" align="center">Legend</div></td> </tr> </tbody></table> <table border="0" height="43" width="177"> <tbody><tr> <!-- calling reference map --> <td height="39" width="171"><img src="http://10.56.67.192/tmp/Richlandleg11553122853452.jpg"></td> </tr> </tbody></table> <div> </div></td> </tr> </tbody></table>
<br><table border="0" width="550"> <tbody><tr> <td colspan="4"><a name="parel_search" id="parel_search"></a><strong>Search for a Parcel</strong>:</td> </tr> <tr> <td width="49">Section</td> <td width="63">Township</td> <td width="387">Range</td> <td width="33"> </td> </tr> <tr> <td colspan="3"><input name="SCT" size="2" maxlength="2" type="text"> <input name="T" size="3" maxlength="3" type="text"> <input name="R" size="2" maxlength="2" type="text"> <input name="GoSec" value="Go" onclick="SetSec()"
type="button"> <br> <span class="style21"> (1-36) (129-136) (47-52) </span></td> <td> </td> </tr> </tbody></table> <br><br><br>~query results new page~<br><img src="file:///C:/DOCUME%7E1/DOUGB%7E1.RIC/LOCALS%7E1/Temp/moz-screenshot.jpg" alt=""><img src="file:///C:/DOCUME%7E1/DOUGB%7E1.RIC/LOCALS%7E1/Temp/moz-screenshot-1.jpg" alt=""><font size="4">Query Results</font> <table border="1"> <tbody><tr><td>Search extent:</td> <td>625173.309834 5085113.091715 718065.960556 5160035.212592<br></td></tr> <tr> <td>Click Point:</td> <td> 635944.008141, 5132968.354278 (Map coordinates)</td>
</tr> </tbody></table> <br> <font size+1=""><b>Layer: Parcels</b></font> <table border="1"><tbody><tr> <th>shpidx</th> <th>Pin No.</th> <th>Section</th> <th>Township</th> <th>Range</th> </tr> <tr> <td>1966</td> <td> <a href="http://10.56.67.192/cgi-bin/mapserv?mode=indexquerymap&qlayer=parcels&shapeindex=1966&shpext=%2D97%2E238890+46%2E333030+%2D97%2E228300+46%2E340260&mapext=shape&map=/home/mapdata/richland.map"> 12000002480000 </a></td> <td>16</td> <td>133</td> <td>52</td></tr></tbody></table><br><br>~query image Pin No. Link new page~<br><img src="file:///C:/DOCUME%7E1/DOUGB%7E1.RIC/LOCALS%7E1/Temp/moz-screenshot-2.jpg" alt=""><img src="file:///C:/DOCUME%7E1/DOUGB%7E1.RIC/LOCALS%7E1/Temp/moz-screenshot-3.jpg" alt=""><img style="width: 357px; height: 345px;"
alt="http://10.56.67.192/cgi-bin/mapserv?mode=indexquerymap&qlayer=parcels&shapeindex=1966&shpext=%2D97%2E238890+46%2E333030+%2D97%2E228300+46%2E340260&mapext=shape&map=/home/mapdata/richland.map" src="http://10.56.67.192/cgi-bin/mapserv?mode=indexquerymap&qlayer=parcels&shapeindex=1966&shpext=%2D97%2E238890+46%2E333030+%2D97%2E228300+46%2E340260&mapext=shape&map=/home/mapdata/richland.map"><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;"> Hello Albert,<br><br>sorry, I do not full understand your mail. Therefore I am not sure, what <br>you have on the screen and what you want to have. The code examples that <br>you gave: are these the template files which you use in your map file?<br><br>You wrote<br><br>"But I want to image of the parcel to load in the image map"<br><br>Do you mean you want a hilited
parcel like in my example site? Or do you <br>want something like an image map in html (that means: a map-tag with <br>area definitions)?<br><br>For the hilited parcel you need a QUERYMAP object in your mapfile. For <br>example:<br><br>QUERYMAP<br> STATUS ON<br> STYLE HILITE<br> COLOR 0 255 255<br>END<br><br>Is your site available in internet, so me and others could have a look <br>at it?<br><br>If not, can you give me your html files and map file and an example <br>shapefile? I could put it on my webserver so we can look at it together <br>and I can make fast modifications.<br><br>Or at least can you give a screenshot with your whole application <br>including the result of a query?<br><br>Manfred<br><br><br><br><br><br>Albert Anderson schrieb:<br><br>> Hi Manfred,<br>> <br>> I got the query working using query templates. But I want to image of <br>> the parcel to load in the image map. How would I go that? I bet I need <br>> another table by the
parcel fields. And have the information load into <br>> that table. Then have a link PIN link go to the image in the image map. <br>> Here is my code your the html, query templates. Could you help me.<br>> <br>> Albert<br>> <br>> header query code<br>> <br><br>> <font size+1=""><b>Layer: Parcels</b></font><br>> <br>> <table border="1"><br>> <tbody><tr><br>> <th>shpidx</th><br>> <th>Pin No.</th><br>> <th>Section</th><br>> <th>Township</th><br>> <th>Range</th><br>> </tr><br>> <br>> <br>> <br>> parcels query code<br>> <tr><br>> <td>[shpidx]</td><br>> <td><br>> <a href="http://%5Bhost%5D/cgi-bin/mapserv?%3Cbr%3E%3E%20mode=indexquerymap&%3Cbr%3E%3E%20qlayer=parcels&%3Cbr%3E%3E%20shapeindex=%5Bshpidx%5D&%3Cbr%3E%3E%20shpext=%5Bshpext_esc%5D&%3Cbr%3E%3E%20mapext=shape&%3Cbr%3E%3E%20map=%5Bmap%5D"><br>> [PIN]<br>> </a></td><br>> <td>[SCT]</td><br>>
<td>[TWP]</td><br>> <td>[RNG]</td><br>> </tr><br>> <br>> html code<br>> <script type="text/javascript" language="javascript"><br>> function SetSec(){<br>> var s = document.the_map.SCT.value;<br>> var t = document.the_map.T.value;<br>> var r = document.the_map.R.value;<br>> <br>> window.parent.location.href = <br>> "http://10.56.67.192/cgi-bin/mapserv?map=/home/mapdata/richland.map&mode=itemquery&mapext=shapes&slayer=parcels&imgxy=309 <br>> 419&imgext=625173.309834 5085113.091715 718065.960556 <br>> 5160035.212592&mapshape=&imgshape=&imgbox=&qstring=('[SCT]'='" + s + "' <br>> AND '[TWP]'='" + t + "' AND '[RNG]'='" + r + <br>> "')&qlayer=parcels&qitem=&shapeindex=&savequery="; <br>> }<br>> </script><br>> <br>> Manfred Meier <m.meier@SPIEKERMANN.DE> wrote:<br>> <br>> 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<br>> "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<br>> 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<br>> 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 wrote:<br>> ><br>> > Hi Albert,<br>> ><br>> > I copied your html code to my local server and use it for the<br>> template<br>> > in the mapfile.<br>> ><br>> > The result is: the Map Tools, Map Layers, Reference Map, legend<br>> 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<br>> the map<br>> > tools, and then into the map, then their is the correct effect.<br>> 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<br>> 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<br>> 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<br>> 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>> ------------------------------------------------------------------------<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>> ------------------------------------------------------------------------<br>> > How low will we go? Check out Yahoo! Messenger�s low<br>> PC-to-Phone call<br>> > rates.<br>> ><br>> <br>> <br>> ------------------------------------------------------------------------<br>> Do you Yahoo!?<br>> Next-gen email? Have it all with the all-new Yahoo! Mail Beta. <br>> <http: //us.rd.yahoo.com/evt="42241/*http://advision.webevents.yahoo.com/handraisers"><br>> <br>> __________________________________________________<br>> Do You Yahoo!?<br>> Tired of spam? Yahoo! Mail has the best spam protection around<br>> http://mail.yahoo.com<br>> <br><br><br></http:></m.meier@SPIEKERMANN.DE></tbody></table></blockquote><p>
<hr size=1>Do you Yahoo!?<br> Everyone is raving about the <a href="http://us.rd.yahoo.com/evt=42297/*http://advision.webevents.yahoo.com/handraisers"> all-new Yahoo! Mail Beta.</a>