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

2010-05-04 Thread David Alda Fernandez de Lezea
Enviado el: lunes, 03 de mayo de 2010 23:59 Para: users@openlayers.org Asunto: Re: [OpenLayers-Users] How to print map area with openlayers Hi, Just in case someone encounters the same problem (i. e. when moving the map, it is printed in its initial position), I solved it by adding the position

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

2010-05-03 Thread guillaumev
Hi, Just in case someone encounters the same problem (i. e. when moving the map, it is printed in its initial position), I solved it by adding the position of the viewport (map.layerContainerDiv.style.left and map.layerContainerDiv.style.top), and then adding the left value of the viewport to

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

2010-04-27 Thread guillaumev
Hi, I now have my vector layers being displayed properly in the image and the result looks ok, but I still have one small problem: when I move the map, the generated image remains the same. I need to do a zoom out and zoom in to have the generated image reinitialized to the right position.

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

2010-04-26 Thread guillaumev
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

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

2010-04-26 Thread Shawn Oatley
I don't have any physical code that can be shared, but I can tell you what I did in order to get it to work. You can probably apply this to whatever programming language you are using. We are using ASP.NET and took advantage of the System.Drawing namespace to draw the vectors back on the

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

2010-04-26 Thread Robert Sanson
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

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

2010-04-26 Thread guillaumev
Thanks for your code, shawn. What I was missing was the getLayerPxFromLonLat. I'm on the right track now :-) ... Regards, Guillaume. -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/How-to-print-map-area-with-openlayers-tp4901023p4965569.html Sent from the OpenLayers

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

2010-04-26 Thread Paul Spencer
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 +

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

2010-04-15 Thread Lisa Gaudette
The easiest thing is to print the page containing the map (or a simpler print page containing the map). For other approaches, this may help: http://trac.openlayers.org/wiki/Printing -- View this message in context:

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

2010-04-15 Thread soatley
rakesh.modi1585 wrote: Hi, I want to print map area (WMS Layer) with overlay vector layers. Is it possible in openlayers, if it then how it is done? Thanks Rakesh Check out the link that Lisa said in her e-mail. We resorted to a server side stitching because we couldn't rely on