wmbeers / cmv-app

CMV - The Configurable Map Viewer - A community supported open source mapping framework built with the Esri JavaScript API and the Dojo Toolkit
https://demo.cmv.io/
MIT License
1 stars 2 forks source link

Folders within a dynamic map service are not toggled on when user selects Turn On All Sublayers (nor off) #46

Closed wmbeers closed 4 years ago

wmbeers commented 4 years ago

How often can you reproduce it?

Always

Description:

If a dynamic map service contains folders, e.g. Critical Lands and Waters Identification Project (CLIP), the options to toggle sublayers do not affect the folders, only the layers within the folders. So if you have the CLIP_V4 and CLIP Opportunities folders unchecked, and select Turn on All Sublayers, the layers within the folders are checked, but not their parent folder, and so the layers are still effectively not visible.

Steps to reproduce:

  1. Add any map service that has folders, such as the CLIP service (under Wildlife and Habitat)
  2. Turn off the folders by unchecking each checkbox next to a folder icon.
  3. Select Turn On All Sublayers menu option from the layer's "hamburger" menu

Expected results: All layers and folders are checked and visible

Actual results: All layers are checked, but the folders that were unchecked in step 2 remain unchecked, so layers within the folders are not visible in the map.

wmbeers commented 4 years ago

I've searched CMV's GitHub repo to see if this issue has been dealt with there, but not finding it. I think this fix would be a great candidate to be pulled into CMV.

wmbeers commented 4 years ago

Tracked in Bugzilla as 5770.

wmbeers commented 4 years ago

Verified in production on public site and est.