-
-
Notifications
You must be signed in to change notification settings - Fork 278
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Layer Control should use imageParameters on Dynamic layers #605
Comments
If I am understanding the issue correctly, this does not seem to occur in the demo app using the current 1.3.4 release of CMV with version 3.14 of the Esri JavaScript API. I am wondering if this a new issue introduced in the CMV develop branch if it was something introduced in a release of the API after version 3.14. If so, we should look at this along side #367 and #601 and determine if it is a CMV bug or an API bug/change. |
Just looked into it a bit more, it seems to ONLY happen on that map service, at least with my testing. I can't reproduce it with my group layers/sub layers. Looking into the config a bit, I see we're using the ImageParameters function. This could be the cause. Perhaps the layer control doesn't look at the property that the build image parameters is setting? |
This is caused by the imageParameters. When imageParameters are passed to a dynamic layer they are not used when creating a layer control for the layer and sublayers. |
A quick fix though for my situation is to set: layerControlLayerInfos: {
expanded: true,
sublayers: false
} This hides all the other layers but shows the legends on the ones in image parameters. |
I started looking into the sublayer visibility issue a little deeper and discovered yet another issue, this one with the layer control.
Now there are less layers showing than when the app started. It appears the Emergency Operations layer is showing by default, but not checked in the layer control, and when another sublayer is toggled,
The text was updated successfully, but these errors were encountered: