I have a map service that contains a feature layer with attachments and raster layers. I would like to have a popup that can display the attachments and metadata when the user clicks on a feature, and displays pixel values when the raster layer is clicked on. I've used both of these examples Identify with Popup & Popup widget | ArcGIS API for JavaScript 3.18, and they work perfectly. I'm wondering if it would be possible to combine them into a single popup that only references the layer that's being clicked on?
Solved! Go to Solution.
OK. Then I should probably make the feature layers and rasters seperate map services.