[fusion-users] Re: Printing only for MapGuide, not for MapServer?

mooman moo at ci.garden-grove.ca.us
Mon Apr 23 12:13:46 EDT 2012


The default Fusion printing in MapGuide is pretty simple (and somewhat
disappointing, especially the legend). I am assuming that it shouldn't be
too difficult to do the same in MapServer.

All you have to do is figure out the URI to get a map image from MapServer,
which should be common, since that's pretty much how it renders the web map
anyhow. For example, in MapGuide, it is:

mapagent.fcgi?
OPERATION=GETMAPIMAGE
&VERSION=1.0.0
&FORMAT=PNG
&MAPNAME=DBI_Map4d80f697336e5
&SESSION=ca2293a4-4ff4-11e0-8000-005056a95ed5_en_C6F5CEE50AFC0AFB0AFA
&SETDISPLAYWIDTH=960
&SETDISPLAYHEIGHT=576
&SETDISPLAYDPI=96
&SETVIEWSCALE=60659.795066631494
&SETVIEWCENTERX=6040228.25
&SETVIEWCENTERY=2224782
&SEQ=654338
&CLIENTAGENT=Fusion+Viewer

And similarly with the legend, or you can render your own legend based on
the session information. 

Take a look at the default Fusion Print widget for MapGuide. You can
probably just use the same code and change only the URI part in
Print/printablepage.templ and Print/printablepage.php.

That's at least how MapGuide printing works. I hope you can do the same with
MapServer.



--
View this message in context: http://osgeo-org.1560.n6.nabble.com/Printing-only-for-MapGuide-not-for-MapServer-tp3780627p4910756.html
Sent from the Fusion Users mailing list archive at Nabble.com.


More information about the fusion-users mailing list