cmndrbensisko / LocalLayer

The LocalLayer Widget for ArcGIS Web AppBuilder is intended to allow the direct addition of ArcGIS for Server Mapservices to an ArcGIS Web AppBuilder application, without needing to wrap the desired services in an ArcGIS Online/Portal Web Map.
MIT License
55 stars 26 forks source link

Dynamic Service Sublayer Visibility #12

Closed cmndrbensisko closed 9 years ago

cmndrbensisko commented 9 years ago

From Barnaby:

Ok, I think I have discovered what is preventing sublayers of dynamic layers being turned on and off individually, AND what is preventing legends of dynamic layers from displaying.

Case 1: A service is published in which the top layer is On in ArcMap:

toplayeron-nolegend_arcmap.jpg

Note that the top-most "Landsat 7 ETM+..." layer is On. When this service is added as a dynamic layer using widget 1.2, its legend will NOT display in the WAB app, and its sublayers CANNOT be turned on and off individually. All sublayers are always on, and can only be turned off when the entire layer is turned of in WAB layer menu. Since multiple sublayers are on, WAB doesn't know which sublayer to display a legend for:

toplayeron-nolegend_wab.jpg

Case 2: A service is published in which the top layer is Off in ArcMap:

toplayeroff-legend_arcmap.jpg

Note that the top-most "Landsat 7 ETM+..." layer is Off. When this service is added as a dynamic layer using widget 1.2, its legend WILL display in the WAB app, and its sublayers CAN be turned on and off individually:

toplayeroff-legend_wab.jpg

Is there a way to fix this so that sublayers of dynamic layers can be toggled on and off normally whether the top-most layer in the service is on or off when published?

cmndrbensisko commented 9 years ago

Addressed in v.1.5.