ArcGIS API 4.6 What is the "proper" way to change opacity for the basemap?
possibly:
var map = new Map({ basemap:"topo"});
map.allLayers.items[0].opacity=0.25;
or perhaps:
var map = new Map();
map.add( new TileLayer(
id:"topo",
url="https://services.arcgisonline.com/ArcGIS/rest/services/World_Topo_Map/MapServer"
});
map.findLayerById("topo").opacity=0.25;
Appendix question: why use basemap vs TileLayer ?
Thanks and good health!
Blair