[mapserver-users] Dynamic Change

Steve Lime steve.lime at dnr.state.mn.us
Thu May 23 00:46:42 EDT 2002


There's a template substitution that computes the exact center of the
image (in pixels for you) based on the just created image dimensions.
Try using:

  <input type="hidden" name="imgxy" value="[center]">

Steve

Stephen Lime
Data & Applications Manager

Minnesota DNR
500 Lafayette Road
St. Paul, MN 55155
651-297-2937
>>> "gabriel" <gabriel at ciasc.gov.br> 05/21/02 08:17 AM >>>
Hi all.

I change de "mapsize" with this

      <SELECT SIZE="1" NAME="mapsize">
         <OPTION VALUE="[mapsize]"> [mapsize]
         <OPTION VALUE="800 800">800 x 800
         <OPTION VALUE="600 600">600 x 600
         <OPTION VALUE="500 500">500 x 500
         <OPTION VALUE="400 400">400 x 400
         <OPTION VALUE="300 300">300 x 300
         <OPTION VALUE="200 200">200 x 200
      </SELECT><br>

and this change requires the update of the value of  "X and Y"
dynamically

       <input type="hidden" name="imgxy" value="X Y">  .

Without this the map loses its centralization.

Can some one help me ?

Thanks.

Gabriel
Florianópolis - SC - Brasil







More information about the mapserver-users mailing list