AnsweredAssumed Answered

Multiple Layers for 1 basemap

Question asked by AlexSabrina on Mar 21, 2016
Latest reply on Mar 22, 2016 by AlexSabrina

Hi all,

I have two Tiled services:

USA_Topo_Maps (MapServer)

World_Topo_Map (MapServer)

 

 

 esriBasemaps.usgs = {
                             baseMapLayers: [{ url: "http://basemap.nationalmap.gov/arcgis/rest/services/USGSTopo/MapServer" }],
                         };
                         esriBasemaps.USATopo = {
                             baseMapLayers: [{ url: "http://services.arcgisonline.com/ArcGIS/rest/services/USA_Topo_Maps/MapServer" }],
                         };

I want these two layers to become 1 basemap layer with ID so I can set Opacity on this layer.

 

map.getLayer(map.basemapLayerIds).setOpacity(ui.value / 100);

 

Is there a way to do that? Would it be possible with a mix dynamic/tiled service as well?

Outcomes