-
-
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
Initial set of layers for Identify Tool are not correct #367
Comments
You are right when you are under a group the identify doesnot work for me also.... I remake all my services without the sub group |
@msereda what does the JSON config in viewer.ls for this dynamic layer look like? Are you including ImageParameters? |
@tmcgee I took a copy of the untouched CMV from here and just added in the service - is this what you're looking for ? {
type: 'dynamic',
url: 'http://server-name/arcgis/rest/services/service-dir/service-name/MapServer',
title: 'My Title',
slider: true,
noLegend: false,
collapsed: false,
sublayerToggle: true,
options: {
id: 'MyID',
visible: true,
imageParameters: imageParameters
},
layerControlLayerInfos: {
expanded: true
}
} |
I think you are right again we don’t have the variable slider true it’s for that Its does not work , you are great @tmcgeehttps://github.com/tmcgee I took a copy of the untouched CMV from here and just added in the service - is this what you're looking for ?
— |
@msereda ok. then it is what I thought it might be. I've seen something similar when you include "layerOptions" like show/hide/exclude for the operational layer. The Layer Control then shows a similar inconsistency. I don't think it is an issue with the Identify widget since if I recall correctly, it just reads the |
Is there solution to this issue? I have this issue as well. Please help. |
@btfou Any thoughts on this? |
@btfou ping |
Should be closed in #604 |
Has anyone run into any issues with the identify dropdown showing layers that shouldn't be available for identify (ie non-visible layers)?
Here's my initial structure from the LayerControl:
^ The layer in red shows up in the identify dropdown, and is available to be identified on at startup. It is not visible on the map itself , but if I console.log the current visible layers the layer in question is showing as visible.
That being said, if I make a change to the LayerControl by flipping any layer on/off, the LayerControl appears to set all layers to how they should be, and the Identify tool works fine at that point. I can see some comments in the LayerControl code referencing "ags doesn't respect a layer group's visibility", but the code there seems fairly specific to the LayerControl so I'm not sure how I'd make that work for Identify.
Anyone else run into this issue? Kinda feels like an API bug, but I'm hoping someone's worked around it for Identify.
The text was updated successfully, but these errors were encountered: