Does anyone know how I would go about hiding labels in a ArcGISDynamicMapServiceLayer?
This is part of my code so far:
var routeLayer = ArcGISDynamicMapServiceLayer(...); map.addLayer(routeLayer); var drawingOptions = new LayerDrawingOptions(); drawingOptions.showLabels = false; var options = ; options = drawingOptions; routeLayer.setLayerDrawingOptions(options);
After doing this however the layer isn't shown on the map.
Do I need to set the renderer property for drawingOptions as well?