AnsweredAssumed Answered

Toggle Labels?

Question asked by mhoover12 on Aug 7, 2013
Latest reply on Aug 8, 2013 by mhoover12
We have a few map layers in our application for which we'd like to toggle the labels off and on.  We've published the layers out with labels, but trying to set showLabels through the LayerDrawingOptions of the service is proving ineffective.

As far as I can tell, if you only set up showLabels = false, the features do not draw on the map at all, because the LayerDrawingOptions object overwrites all of the drawing properties of the layer.  As a result, the layer no longer has a renderer and doesn't draw.  But the problem is, I've gone out and grabbed the renderer information as JSON from my service, passed that over to the LayerDrawingOptions, and still I get nothing.

Has anyone had any luck setting up label toggling?