AnsweredAssumed Answered

ArcGIS API 4.6 How to set opacity for the basemap?

Question asked by abjones on Jun 5, 2018
Latest reply on Jun 5, 2018 by rscheitlin

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

Outcomes