<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html; charset=ISO-8859-15"
http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Hello Hugo,<br>
<br>
for your second problem you may use the beforeprint event of the
PrintProvider class, with the <br>
listener arguments:
<ul class="simple">
<li>printProvider - <a title="GeoExt.data.PrintProvider"
class="reference internal"
href="http://geoext.org/lib/GeoExt/data/PrintProvider.html#GeoExt.data.PrintProvider"><tt
class="xref docutils literal"><span class="pre">GeoExt.data.PrintProvider</span></tt></a>
this
PrintProvider</li>
<li>map - <tt class="docutils literal"><span class="pre">OpenLayers.Map</span></tt>
the map being printed</li>
<li>pages - Array of <a title="GeoExt.data.PrintPage"
class="reference external"
href="http://geoext.org/lib/GeoExt/data/PrintPage.html#GeoExt.data.PrintPage"><tt
class="xref docutils literal"><span class="pre">GeoExt.data.PrintPage</span></tt></a>
the print
pages being printed</li>
<li>options - <tt class="docutils literal"><span class="pre">Object</span></tt>
the options to the print command</li>
</ul>
see: <a class="moz-txt-link-freetext" href="http://geoext.org/lib/GeoExt/data/PrintProvider.html">http://geoext.org/lib/GeoExt/data/PrintProvider.html</a><br>
<br>
Maybe you check and rearrange your map object here.<br>
<br>
Best regards,<br>
Chris<br>
<br>
Am 04.10.2011 19:58, schrieb gbrun:
<blockquote cite="mid:op.v2t9i3d4yqc6xb@waverly-pc" type="cite">
<pre wrap="">Hi Hugo,
As far as I know, printing vector legend is not supported in the current
GeoExt trunk.
No idea for your second problem!
Geoffrey
Le Tue, 04 Oct 2011 17:15:01 +0200, Hugo <a class="moz-txt-link-rfc2396E" href="mailto:hfpmartins@gmail.com"><hfpmartins@gmail.com></a> a écrit:
</pre>
<blockquote type="cite">
<pre wrap="">Hello all,
I was able to implement printing using printprovider, printpage and the
printextent plugin. However i have some small bugs which, untill now, i
wasn't able to solve.
The first problem i'm having is related with printing legends when having
WFS layers on the map (firebuf is always showing: encFn is undefined). I
have checked the encoders part of the prinProvider.js and in fact i don't
see WFS there. However there is an encoder for vector layers. So my first
question would be is it possible to print legends with WFS?
My second problem is related with layer order. When the app is loaded,
there
are some initial layers that are loaded (WMS, WFS and TileCache). I also
have the functionality to allow user to add additional layers returned by
WMS capabilities of geoserver. Because i wnated to keep all layers that
were
initially loaded above all others i'm setting layers ZIndex dynamically
in
the app. All is working fine when viewing and adding new layers (i always
get inital loaded layers on top of the added ones). However, when trying
to
print, the added layers from wms capabilities are always on the top of
all
others. More interesting is that, after printing, all layers are
magically
rearranged and in fact, the added layers become on top of all the others.
What property am i missing here???
Kind regards,
Hugo
</pre>
</blockquote>
<pre wrap="">_______________________________________________
Users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Users@geoext.org">Users@geoext.org</a>
<a class="moz-txt-link-freetext" href="http://www.geoext.org/cgi-bin/mailman/listinfo/users">http://www.geoext.org/cgi-bin/mailman/listinfo/users</a>
</pre>
</blockquote>
<br>
<br>
<pre class="moz-signature" cols="72">--
Dipl.-Ing.(FH) Christian Mayer
- Anwendungsentwickler -
terrestris GmbH & Co. KG
Irmintrudisstraße 17
53111 Bonn
Tel: ++49 (0)228 / 96 28 99 -53
Fax: ++49 (0)228 / 96 28 99 -57
Email: <a class="moz-txt-link-abbreviated" href="mailto:mayer@terrestris.de">mayer@terrestris.de</a>
Web: <a class="moz-txt-link-freetext" href="http://www.terrestris.de">http://www.terrestris.de</a>
Amtsgericht Bonn, HRA 6835
Komplementärin: terrestris Verwaltungsgesellschaft mbH
vertreten durch: Hinrich Paulsen, Till Adams
</pre>
</body>
</html>