AnsweredAssumed Answered

Get top layer only in popup?

Question asked by MollyKFoley on May 3, 2018
Latest reply on May 3, 2018 by rscheitlin

I am wondering if this is possible in 3.24. When I click on a feature on my map that overlaps with other polygon features, all of those features will be available in the popup. Is it possible to just get the top-most layer in the popup? The only reason I ask is because I have a custom action link in the popup that isn't applicable to the other features in the stack, but if you change between features using the arrows, the action link will persist. I haven't come up with a way to target when the popup changes since the classes don't change, but rather just the content does. Basically I either need to only display the top layer feature, or I'd need a way to detect when the title of the popup changes to so-and-so and then I could hide the link.