-
-
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
Can only identify top layer in Grouped Layer configuration #930
Comments
@ishiland Grouping is only for the LayerList widget and doesn't affect the Identify functionality in any way. You'll notice that the identify behavior is the same for these layers regardless of whether they are in a Grouped layer or not. Using your example, I can identify the continents layer both when grouped and when not grouped. If you mean that you cannot identify features from both layers with a single click, that is the expected behavior. Since the top-most graphic captures the mouse click, only one graphic feature can be identified at any one time - regardless of the layer. This is a limitation of the Esri JavaScript API. |
This is exactly the problem. Are you aware of any work around? My requirements are to be able to identify multiple grouped layers with a single click. I have not looked at the code yet but Im hoping for some sort of solution. |
@tmcgee just to follow up, im getting this error when choosing "Restaurants" as the single layer in the identify widget:
When I select "continent" I actually get the expected results Im looking for: As originally reported, "All Visible Layers" only seems to identify the top layer, restaurants. I will take a look at the code later today. I appreciate any direction you can offer. |
@ishiland Confirmed. I see both behaviors you describe using jsBin. I am not sure why but will investigate. |
I ended up using the |
How often can you reproduce it?
Description:
When performing identify against multiple visible layers in a "Grouped Layer" configuration, only the top most layer can be identified.
Steps to reproduce:
Create a Grouped layer and turn on all layers. Try to identify a layer beneath the top layer.
JS Bin here:
https://jsbin.com/viguseyini/edit?js,output
Expected results:
Its expected to be able to cycle through all layers that are at the identify location.
Actual results:
Only the top most visible layer can be identified.
Environment:
The text was updated successfully, but these errors were encountered: