Is it posible to extend current LegendDecoration paint method to ignore some
layers? Maybe the skipped layers can be passed in a custom WMS parameter. Is
that possible?

Other possibility is to query a database from there to know whether a layer
should be rendered on the legend or not.  Do you consider it a bad approach?

Do I have to checkout all GeoServer source code to do that?

Do I need to use some particular JARs?

Is there any documentation about how to "deploy" new decorations?

Sorry about having so many questions. I just want to learn. :)

Thanks a lot.

2011/6/17 Andrea Aime <[email protected]>

> On Fri, Jun 17, 2011 at 7:52 PM, Fernando Barbat <[email protected]>
> wrote:
> > Is it posible to customize how a legend in WMS decorations is rendered?
> In
> > my case, I just want the legend to skip some layers, which are used only
> for
> > labeling.
> >
> > If it is not posible, any workaround would be appreciated.
>
> As far as I can see map decorations are pluggable, so you can code your
> own custom legend decoration if you want.
> See the code here:
>
> http://svn.codehaus.org/geoserver/trunk/src/wms/src/main/java/org/geoserver/wms/decoration/
>
> the "fromFile" method in
>
> http://svn.codehaus.org/geoserver/trunk/src/wms/src/main/java/org/geoserver/wms/decoration/MapDecorationLayout.java
> and how the various decoration plugins are registered in the spring
> context here:
>
> http://svn.codehaus.org/geoserver/trunk/src/wms/src/main/java/applicationContext.xml
>
> Cheers
> Andrea
>
> >
> > Thanks.
> >
> >
> ------------------------------------------------------------------------------
> > EditLive Enterprise is the world's most technically advanced content
> > authoring tool. Experience the power of Track Changes, Inline Image
> > Editing and ensure content is compliant with Accessibility Checking.
> > http://p.sf.net/sfu/ephox-dev2dev
> > _______________________________________________
> > Geoserver-users mailing list
> > [email protected]
> > https://lists.sourceforge.net/lists/listinfo/geoserver-users
> >
> >
>
>
>
> --
> -------------------------------------------------------
> Ing. Andrea Aime
> GeoSolutions S.A.S.
> Tech lead
>
> Via Poggio alle Viti 1187
> 55054  Massarosa (LU)
> Italy
>
> phone: +39 0584 962313
> fax:      +39 0584 962313
>
> http://www.geo-solutions.it
> http://geo-solutions.blogspot.com/
> http://www.youtube.com/user/GeoSolutionsIT
> http://www.linkedin.com/in/andreaaime
> http://twitter.com/geowolf
>
> -------------------------------------------------------
>
------------------------------------------------------------------------------
EditLive Enterprise is the world's most technically advanced content
authoring tool. Experience the power of Track Changes, Inline Image
Editing and ensure content is compliant with Accessibility Checking.
http://p.sf.net/sfu/ephox-dev2dev
_______________________________________________
Geoserver-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Reply via email to