[Mapserver-users] Printing - PHP code
Stephen Woodbridge
woodbri at swoodbridge.com
Fri Jun 18 06:13:00 PDT 2004
Satyajit,
Very nice job indeed! I had a problem that I could not see the map in
the Rosa applet in either IE6 or Netscape 7.1, so I think something is
broken.
As for printing, I think the best strategy is to have a link the opens a
new page with the map, scale bar and legend as image tags and the layout
designed for printing. If you want to support multiple page formats the
have the user select them from a drop down. Doing your print pages in
straight html will be much cleaner. You will have to pass the current
map parameters and layers to the code or template url that does the
layout and possibly make some changes to it to adjust the size of the
image for the new page layout. It would probably be easiest to do this
in mapscript, but you could also do the image size/scale adjustments in
javascript before you submit the link.
Great job,
-Steve W.
Satyajit wrote:
> Dear list,
> I've successfully built an application on Mapserver. Check this
> out http://203.199.114.111/newham. First I would like to thank this list
> for giving all the useful info about creating an application with
> Mapserver. This list seems to be the only resource for any kind of help.
> Without you guys it would have been impossible to carry out this
> project.
> I still have to add some more functionality to this. Can anyone suggest
> me a way to take the printout of the map with the legend and scale bar
> and north arrow. My problem is that I have a lot of themes in my map and
> if someone takes the printout of the map then I will have adjust the
> sizes of the legend so that it fits into the size of the specified paper
> ( A4 or A3 ..). If anyone has the working code then I would like to have
> that so that I can implement it directly.
> Thanks a lot guys.
> Waiting for your replies.
>
> ~cheers
> Satyajit.
>
> _______________________________________________
> 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