SIZE in percentages?

Stephen Woodbridge woodbri at SWOODBRIDGE.COM
Wed May 16 15:17:16 EDT 2007


Bart van den Eijnden (OSGIS) wrote:
> Hi list,
> 
> we've got a problem with labels getting too small in a PDF print (not using
> Mapserver's PDF output btw). The WMS image requested for the PDF print is
> approximately 2000 x 1500 pixels, and then squeezed into an A4 PDF to get an
> appropriate resolution for prints.
> 
> But since labels are 9 pixels only (the same MAP file is also used for a
> webmapping application with a 600 x 400 map), they end up being too small.
> 
> Is there an option to have something like SIZEUNITS percentage, and then use
> for instance a percentage of the image height for labels?
> 
> Other options currently available already?
> 
> Thoughts on this issue/enhancement appreciated.

Bart,

There are other things that get squeezed down also, like line widths and 
pixel symbols, etc. You could in theory do something like CSS media 
styles for print, web, or other. But this would just create two (or 
more) mapfiles in one and slow down parsing. The easiest think might be 
to just create a separate mapfile for print where you style stuff 
appropriate to the environment, and then have you application switch 
between the mapfiles.

-Steve W



More information about the mapserver-users mailing list