[mapserver-users] Drawing imgbox on map image.

Stephen Lime steve.lime at dnr.state.mn.us
Thu Jun 21 13:03:07 PDT 2001


You can make it do this using inline features. For example you might define a layer
called "box" with no DATA parameter. Then you add a feature to the map using
URL parameters like "&map_box_feature=new&map_box_feature_points=[rawminx]+[rawminy]+
[rawminx]+[rawmaxy]...". Works nice. I do that with the reference map at:

  http://maps.dnr.state.mn.us/cgi-bin/mapserv?map=/usr/local/www/docs/compass/view.map&zoomsize=3&zoomdir=1

You can download the reference mapfile at:

  http://maps.dnr.state.mn.us/compass/reference.map 

Steve

Stephen Lime
Internet Applications Analyst

Minnesota DNR
500 Lafayette Road
St. Paul, MN 55155
651-297-2937

>>> "Hockaday, John" <JohnHockaday at auslig.gov.au> 06/21/01 12:19AM >>>
Hi,

I am using javascript to drag a box on the mapserv image to allow users to
zoom in to an area of interest.  I am also sending the [rawminx], [rawminy],
[rawmaxx] and [rawmaxy] values back to the opening browser window so that
these values can be used in another cgi-bin interface.

I was wondering is there an option that will draw the imgbox, determined by
the user who dragged the box across the map image, on the resulting map
image returned from mapserv?

Can someone help me with this.  My interface is almost complete so I don't
really want  to get involved with mapscript.

Thanks in advance for your help.

John Hockaday




More information about the MapServer-users mailing list