How to set BaseMapLayer opacity?

Discussion created by stevel on Jul 27, 2011
Latest reply on Sep 26, 2011 by DSwingley-esristaff
The reference for BasemapLayer says that it includes an opacity setting, however I'm having problems getting it to work.

Using the sample here I add a setting to specify the opacity:

function createBasemapGallery(){
        //Manually create a list of basemaps to display
        var basemaps = [];
        var basemapRoad = new esri.dijit.Basemap({
          layers: [new esri.dijit.BasemapLayer({
            type: "BingMapsRoad",
            opacity: 0.25
          id: "bmRoad",
          title: "Road"

This doesn't have any discernible effect - what am I doing wrong?