[mapguide-users] printing PNG and GIF

Kevin Pelgrims Kevin.Pelgrims at realdolmen.com
Wed Sep 21 03:22:34 EDT 2011


This is a simple example of how to use the GetMapImage functionality:
<img onclick="window.print()" src="http://servername/mapserver2012/mapagent/mapagent.fcgi?OPERATION=GETMAPIMAGE&VERSION=1.0.0&FORMAT=PNG&SETDISPLAYDPI=150&SESSION=SessionId&MAPNAME=MapName&SETVIEWCENTERX=170000&SETVIEWCENTERY=100000&SETVIEWSCALE=20000&SETDISPLAYWIDTH=800&SETDISPLAYHEIGHT=600" />

You can fill in the sessionId, mapname, center, scale and even width and height using the MG viewer API.

________________________________________
Van: mapguide-users-bounces at lists.osgeo.org [mapguide-users-bounces at lists.osgeo.org] namens tmblackflag [steve.calpoly at gmail.com]
Verzonden: woensdag 21 september 2011 0:30
Aan: mapguide-users at lists.osgeo.org
Onderwerp: [mapguide-users] printing PNG and GIF

I'm running Infrastructure map server 2012 with IIS 7x and ASP.NET. The quick
plot does not work for the AJAX Viewer running in Firefox/Chrome and I am
unable to print any maps.

Has anyone created print functions using the RenderingService or some other
means and has an example they can provide?

thank you.

--
View this message in context: http://osgeo-org.1803224.n2.nabble.com/printing-PNG-and-GIF-tp6814089p6814089.html
Sent from the MapGuide Users mailing list archive at Nabble.com.
_______________________________________________
mapguide-users mailing list
mapguide-users at lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapguide-users


More information about the mapguide-users mailing list