Hi David,
Here is the code I'm using on the server side to parse the features:
$red = imagecolorallocate($image, 255, 0, 0);
$black = imagecolorallocate($image, 0, 0, 0);
foreach($features as $feature_array) {
if(count($fea
]
En nombre de guillaumev
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 a
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 the
Hi,
I still wasn't able to solve that problem. Basically, what happens is that
if I move through the map, then do a zoom out and then a zoom in, the map is
printed at the position where I moved to. However, if I just move through
the map, without doing a zoom out and zoom in, the map is printed i
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. Anybod
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 + Mapser
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 Use
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
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 imag
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
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 r
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:
http://n2.nabble.com/How-to-print-map-area-with-openlayers-tp4901023p4907550.htm
12 matches
Mail list logo