Thanks for your reply!

In fact, I've changed the way I use the PrintProvider. I don't use a  
pageLayer anymore (with printPage.feature in a vector layer), but either a  
printPage.fit() method. But I'm not sure if it is really this new code  
that solved my problem... After that, I had some problems printing vector  
layers legend: in fact, it isn't possible. So maybe my initial mistake was  
to test printing a map legend that contained vector layers. But I don't  
remember! :s

Nevertheless, thanks for your explanation!

Geoffrey


On Wed, 24 Aug 2011 15:17:43 +0200, Matt Priour  
<mpri...@kestrelcomputer.com> wrote:

> It comes from GeoExt.data.PrintProvider and can occur if you are using a  
> layer class for which there is no known encoder.
> Look through the encoders section at the end of the PrintProvider.js  
> file and see if you are using an unsupported layer type and if you can  
> modify the layer type you are using to get properly encoded by one of  
> the encoders.
> Matt Priour
> Kestrel Computer Consulting
>
> From: gbrun
> Sent: Wednesday, August 24, 2011 3:32 AM
> To: users@geoext.org
> Subject: [Users] Legend printing
>
> Hi everybody!
>
> I've got a little problem to print layers legend. My code is similar to
> the one used for this example:
> http://api.geoext.org/1.0/examples/print-page.html
>
> Firebug points this error out to me: 'encFn is undefined' for the line  
> 279
> in the 'GeoExt.js' file.
>
> I'm working with the GeoServer mapFish plugin. I don't know if the  
> problem
> comes from this or from my GeoExt code, or even from my yaml file.
>
> Does anyone know this issue?
>
> Geoffrey
> _______________________________________________
> Users mailing list
> Users@geoext.org
> http://www.geoext.org/cgi-bin/mailman/listinfo/users


-- 
Using Opera's revolutionary email client: http://www.opera.com/mail/
_______________________________________________
Users mailing list
Users@geoext.org
http://www.geoext.org/cgi-bin/mailman/listinfo/users

Reply via email to