Govardhan ha scritto:
> Dear All,
>     I need to give an option to swith off/ on the labels for each maplayer 
> in the mapContext.
> Can anybody help me doing this.

The only way I can think about is to use two layers, one for the
geomtries, the other just for labels, and switch the second off on
request.

Another hypothetical way would be to pass Geoserver parameters to
be put in the rendering context, and have a rule evaluate
these parameters to decide whether labels should be displayed,
but this is not possible at the moment and would require
a some new developments in both Geotools and Geoserver.

Cheers
Andrea

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Geotools-gt2-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users

Reply via email to