Hello Chris and Geoffrey,<div><br></div><div>Thanks a lot for your replies. I will look further into your suggestions and come back with feedback.</div><div>Cheers,</div><div><br></div><div>Hugo<br><br><div class="gmail_quote">
On Tue, Oct 4, 2011 at 8:15 PM, Christian Mayer <span dir="ltr"><<a href="mailto:mayer@terrestris.de">mayer@terrestris.de</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<u></u>
<div 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>
<li>printProvider - <a title="GeoExt.data.PrintProvider" href="http://geoext.org/lib/GeoExt/data/PrintProvider.html#GeoExt.data.PrintProvider" target="_blank"><tt><span>GeoExt.data.PrintProvider</span></tt></a>
this
PrintProvider</li>
<li>map - <tt><span>OpenLayers.Map</span></tt>
the map being printed</li>
<li>pages - Array of <a title="GeoExt.data.PrintPage" href="http://geoext.org/lib/GeoExt/data/PrintPage.html#GeoExt.data.PrintPage" target="_blank"><tt><span>GeoExt.data.PrintPage</span></tt></a>
the print
pages being printed</li>
<li>options - <tt><span>Object</span></tt>
the options to the print command</li>
</ul>
see: <a href="http://geoext.org/lib/GeoExt/data/PrintProvider.html" target="_blank">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:
<div><div></div><div class="h5"><blockquote type="cite">
<pre>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 href="mailto:hfpmartins@gmail.com" target="_blank"><hfpmartins@gmail.com></a> a écrit:
</pre>
<blockquote type="cite">
<pre>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>_______________________________________________
Users mailing list
<a href="mailto:Users@geoext.org" target="_blank">Users@geoext.org</a>
<a href="http://www.geoext.org/cgi-bin/mailman/listinfo/users" target="_blank">http://www.geoext.org/cgi-bin/mailman/listinfo/users</a>
</pre>
</blockquote>
<br>
<br>
</div></div><pre cols="72">--
Dipl.-Ing.(FH) Christian Mayer
- Anwendungsentwickler -
terrestris GmbH & Co. KG
Irmintrudisstraße 17
53111 Bonn
Tel: <a href="tel:%2B%2B49%20%280%29228%20%2F%2096%2028%2099%20-53" value="+4922896289953" target="_blank">++49 (0)228 / 96 28 99 -53</a>
Fax: <a href="tel:%2B%2B49%20%280%29228%20%2F%2096%2028%2099%20-57" value="+4922896289957" target="_blank">++49 (0)228 / 96 28 99 -57</a>
Email: <a href="mailto:mayer@terrestris.de" target="_blank">mayer@terrestris.de</a>
Web: <a href="http://www.terrestris.de" target="_blank">http://www.terrestris.de</a>
Amtsgericht Bonn, HRA 6835
Komplementärin: terrestris Verwaltungsgesellschaft mbH
vertreten durch: Hinrich Paulsen, Till Adams
</pre>
</div>
<br>_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@geoext.org">Users@geoext.org</a><br>
<a href="http://www.geoext.org/cgi-bin/mailman/listinfo/users" target="_blank">http://www.geoext.org/cgi-bin/mailman/listinfo/users</a><br>
<br></blockquote></div><br><br clear="all"><div><br></div>-- <br>Hugo Martins<br>LabNT - ISEGI UNL<br>Campus de Campolide<br>1070-312 Lisboa<br>N 38°43'56.84", W 9°9'35.74"<br>
</div>