[Mapserver-users] Map Size
Martin, Daniel
DMartin at erac.com
Mon Mar 3 12:18:01 PST 2003
In case you would prefer a non-javascript MapSize option, here's a pure HTML
version. Include this anywhere in your map form.
<select name="mapsize">
<option value="[mapsize]">[mapwidth]x[mapheight]</option>
<option value="320 240">320x240</option>
<option value="320 320">320x320</option>
<option value="480 320">480x320</option>
<option value="480 480">480X480</option>
<option value="640 480">640x480</option>
<option value="640 640">640x640</option>
<option value="800 600">800x600</option>
<option value="800 800">800x800</option>
<option value="1024 768">1024x768</option>
<option value="1024 1024">1024x1024</option>
</select>
> -----Original Message-----
> From: Lowther, David W [mailto:dlowther at ou.edu]
> Sent: Sunday, March 02, 2003 7:54 AM
> To: 'Thomas Bartlett '; 'mapserver-users at lists.gis.umn.edu '
> Subject: RE: [Mapserver-users] Map Size
>
>
> this is basically what I am using... this may appear a bit
> convoluted, but
> its yanked from a couple of different places. the first half
> is what i do
> when someone clicks the mapsize - and then i refresh the map
> (which is the
> second half).
>
> function sizemap(x,y){
> msForm=(set to mapserver form);
> msForm.mapsize.value= x + " " + y;
> msForm.centerx.value = x/2;
> msForm.centery.value = y/2;
>
> msForm.mode.value="browse";
> msForm.imgxy.value= msForm.centerx.value + ' ' + msForm.centery.value;
> msForm.imgbox.value="-1 -1 -1 -1";
> msForm.zoom.value=0;
> msForm.submit();
> }
>
> hope that helps,
>
> Dave
>
>
> -----Original Message-----
> From: Thomas Bartlett
> To: mapserver-users at lists.gis.umn.edu
> Sent: 3/1/03 9:02 PM
> Subject: [Mapserver-users] Map Size
>
>
> G'day All,
> Just a quick question about how to allow users to change the
> size of the
> image (the size of the map). eg 500 x 400, 600 x 450 or 700 x 500.
>
> The size of the image returned by MapServer is determined in the .map
> file so do you just have 3 different maps files for each image size ??
> They would be identical in every other respect?
>
> I'm using Mapplet, on IIS on an XP machine !!
>
> Thomas Bartlett
> --------------------------------------------------------------
> ----------
> ----------------------------------
> GIS Technician
> Digital (Digest) Data Design Pty Ltd
> Military GIS Professionals and Consultants
> http://www.dddd.com.au/ <http://www.dddd.com.au/>
> Telephone: 02 6286 9555
> Facsimile: 02 6286 9888
> Postal : PO Box 683 MAWSON ACT 2607
> _______________________________________________
> Mapserver-users mailing list
> Mapserver-users at lists.gis.umn.edu
> http://lists.gis.umn.edu/mailman/listinfo/mapserver-users
>
More information about the MapServer-users
mailing list