toggle label visibility

Discussion created by rikke on Apr 11, 2011
Latest reply on Apr 12, 2011 by barbiturat
Hi Everyone,

Seems like a pretty simple task - hopefully there is a simple solution that I cant see.

If I publish a map service with layers that have labeling setup and turned on, how do I turn those labels off dynamically?

I can see in the REST info that the labeling info is provided, but cant see anything in the API to say labels.show() or labels.hide().

I have also tried using annotation as an alternative, but cannot seem to group all annotation into a single group layer, so that isnt looking like a viable work-around as yet.