ratser map based on CGI

Zhonghai Wang zhonghaiw at GMAIL.COM
Thu Jun 1 01:12:40 PDT 2006


Hi Steve,

thank you so much for lighting me, your solution works really well.

And I've noticed that there REF and REF[x][y] 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.

I am trying to get the value to figure out if it works, but these two
parameters are not replaced by the CGI program:

<input type="text" value="[REF]" size="15">
<input type="text" value="[REF[x][y]]" size="15">

or not all CGI parameters can be used in the template file?

thanks in advance

zhonghai

On 5/31/06, Steve Lime <Steve.Lime at dnr.state.mn.us> wrote:
>
> 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):
>
> <form name=image_form action=/cgi-bin/mapserv>
> <input type=hidden name=map value=[map]>
> <input type=hidden name=imgext value="[mapext]">
> <input type=image name=img src=[img]>
> </form>
>
> <form name=scale_form action=/cgi-bin/mapserv>
> <input type=hidden name=map value=[map]>
> <input type=hidden name=mapxy value="[mapx] [mapy]">
> <select name=scale SINGLE>
>    <option value=1000000> 1:1,000,000
>    <option value=500000> 1:500,000
>    ...
> </select>
> <input type=submit name=" go ">
> </form>
>
> 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.
>
> Steve
>
> >>> Zhonghai Wang <zhonghaiw at GMAIL.COM> 05/31/06 3:18 AM >>>
> Hi guys,
>
> trying to develop a small demo using scanned paper maps, these are some
> historical maps and scanned as GIF or JPEG format. I am wondering if I can
> do it only using HTML tags and CGI parameters, without client side script
> languages.
>
> the problem for these paper maps is:
>
> I can not use the zoom[number] parameter to set the zoom control, since
> each
> paper map can only be displayed in a certain map scale, e.g 1:1000000,
> otherwise it's not readable because of the image resolution. I have about
> 9
> different levels.
>
> I appreciate your info.
>
> zhonghai
>
> 31.05.2005
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20060601/dc055537/attachment.htm>


More information about the MapServer-users mailing list