LayerDrawingOptions does not working

Discussion created by yakubov on Jun 13, 2013
Latest reply on Jul 19, 2016 by bflessner
Good day everybody!
I have a service working on ArcGIS for Server 10.1.
I trying to use LayerDrawingOptions (javascript api 3.5):
    var imageParams = new esri.layers.ImageParameters();
    imageParams.layerIds = [2];
    imageParams.transparent = true;
    imageParams.layerOption = esri.layers.ImageParameters.LAYER_OPTION_SHOW;

    var options = {
        imageParameters: imageParams,
        opacity: 0.5,
        disableClientCaching: true
    var oblLayer = new esri.layers.ArcGISDynamicMapServiceLayer(gaiis_features_baseurl + "/MapServer");

    var optionsArray = [];
    var drawingOptions = new esri.layers.LayerDrawingOptions();
    optionsArray[2] = drawingOptions;

I not see the layer oblLayer!
If to comment string optionsArray[2] = drawingOptions; or oblLayer.setLayerDrawingOptions(optionsArray); - everythings working fine and i see all layers.
I not see any errors in firebug!
Help please.
Thank you.