<div>Hi Steve,</div>
<div>&nbsp;</div>
<div>thank you so much for lighting me, your solution works really well.</div>
<div>&nbsp;</div>
<div>And I've noticed that there&nbsp;REF and REF[x][y]&nbsp;CGI parameters in the document, do these mean I can simply click on the reference map and the map extent will change automatically? I mean the case of CGI mode.</div>
<div>&nbsp;</div>
<div>I am trying to get the value to figure out if it works, but these two parameters are not replaced by the CGI program:</div>
<div>&nbsp;</div>
<div>&lt;input type=&quot;text&quot; value=&quot;[REF]&quot; size=&quot;15&quot;&gt;</div>
<div>&lt;input type=&quot;text&quot; value=&quot;[REF[x][y]]&quot; size=&quot;15&quot;&gt;</div>
<div>&nbsp;</div>
<div>or not all CGI parameters can be used in the template file?</div>
<div>&nbsp;</div>
<div>thanks in advance</div>
<div>&nbsp;</div>
<div>zhonghai<br>&nbsp;</div>
<div><span class="gmail_quote">On 5/31/06, <b class="gmail_sendername">Steve Lime</b> &lt;<a href="mailto:Steve.Lime@dnr.state.mn.us">Steve.Lime@dnr.state.mn.us</a>&gt; wrote:</span>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">Zhonghai: That should be doable. The CGI does accept a point (only in map coordinates I think) and a scale. You'd probably want to allow panning in the the main map display (no zooming) and then control scale with a seperate form. A skeleton browse template might look like (this is off the top of my head):
<br><br>&lt;form name=image_form action=/cgi-bin/mapserv&gt;<br>&lt;input type=hidden name=map value=[map]&gt;<br>&lt;input type=hidden name=imgext value=&quot;[mapext]&quot;&gt;<br>&lt;input type=image name=img src=[img]&gt;
<br>&lt;/form&gt;<br><br>&lt;form name=scale_form action=/cgi-bin/mapserv&gt;<br>&lt;input type=hidden name=map value=[map]&gt;<br>&lt;input type=hidden name=mapxy value=&quot;[mapx] [mapy]&quot;&gt;<br>&lt;select name=scale SINGLE&gt;
<br>&nbsp;&nbsp; &lt;option value=1000000&gt; 1:1,000,000<br>&nbsp;&nbsp; &lt;option value=500000&gt; 1:500,000<br>&nbsp;&nbsp; ...<br>&lt;/select&gt;<br>&lt;input type=submit name=&quot; go &quot;&gt;<br>&lt;/form&gt;<br><br>You'd have to maintain the scale select list state with a bit of javascript but otherwise something like this should work. Since the forms are pretty well self contained you should be able to use most any design/page layout.
<br><br>Steve<br><br>&gt;&gt;&gt; Zhonghai Wang &lt;<a href="mailto:zhonghaiw@GMAIL.COM">zhonghaiw@GMAIL.COM</a>&gt; 05/31/06 3:18 AM &gt;&gt;&gt;<br>Hi guys,<br><br>trying to develop a small demo using scanned paper maps, these are some
<br>historical maps and scanned as GIF or JPEG format. I am wondering if I can<br>do it only using HTML tags and CGI parameters, without client side script<br>languages.<br><br>the problem for these paper maps is:<br><br>
I can not use the zoom[number] parameter to set the zoom control, since each<br>paper map can only be displayed in a certain map scale, e.g 1:1000000,<br>otherwise it's not readable because of the image resolution. I have about 9
<br>different levels.<br><br>I appreciate your info.<br><br>zhonghai<br><br>31.05.2005<br></blockquote></div><br>