[OpenLayers-Users] How to print map area with openlayers

Paul Spencer pagameba at gmail.com
Mon Apr 26 20:04:34 EDT 2010


We get vector layers into print by using WFST via tinyows and then adding layers to a mapserver map file which draw the features from the same postgis database that tinyows uses.

Cheers

Paul

On 2010-04-26, at 5:07 PM, Robert Sanson wrote:

> What we have done in our system (OpenLayers + Mapserver) is write some Javascript code to get a list of layers that are visible and the map extent from OpenLayers, then send the parameters to a Python script in our cgi-bin directory, which then sends a CGI map request to Mapserver. The returned image is turned into a PDF by the Python ReportLab module which is then returned to the calling Web page.
>  
> regards,
>  
> Robert Sanson
> 
> >>> guillaumev <guillaume at viguierjust.com> 27/04/2010 7:29 a.m. >>>
> 
> Hi,
> 
> soatley > I'm trying to do the exact same thing (server side stitching of
> the different layers of the map). However, after using the code here:
> http://trac.openlayers.org/wiki/Printing, the vector layers do NOT get
> printed. Do you have some reusable code that you would be willing to share,
> in order to properly print the vector layers ? Thank you.
> -- 
> View this message in context: http://osgeo-org.1803224.n2.nabble.com/How-to-print-map-area-with-openlayers-tp4901023p4964522.html
> Sent from the OpenLayers Users mailing list archive at Nabble.com.
> _______________________________________________
> Users mailing list
> Users at openlayers.org
> http://openlayers.org/mailman/listinfo/users
> 
> 
> 
> This message has been scanned for malware by SurfControl plc. www.surfcontrol.com
> 
> _______________________________________________
> Users mailing list
> Users at openlayers.org
> http://openlayers.org/mailman/listinfo/users




More information about the Users mailing list