AnsweredAssumed Answered

How to hide labels in ArcGISDynamicMapServiceLayer

Question asked by arcsukul on Jan 11, 2015
Latest reply on May 12, 2015 by srbjlb

Hi guys does anyone know how i would go about hiding labels in a  ArcGISDynamicMapServiceLayer?


This is part of my code so far


var routeLayer = ArcGISDynamicMapServiceLayer(...);



                        var drawingOptions = new LayerDrawingOptions();

                        drawingOptions.showLabels = false;

                        var options = [];

                        options[0] = drawingOptions;





After doing this however the layer isn't shown on the map.

Do i need to set the renderer property for drawingOptions also?