I have a web map with layers added from different feature services. Popups are working for other layers, but for one in particular, the popup only appears if the very edge of each feature is clicked. These are land use Zones which are polygon features.
This happens on Chrome and Edge, and on different PCs. I'm wondering if there might be something different about how this feature service was published which I should check?
Are the polygons set to have transparent fill? If the fill color is completely transparent, it disables the popup when you click on a fill are, but will still trigger it when you click the stroke (edge).
There isn't an easy way to disable that particular command decision, is there? I've begun setting polygons to 99% transparency as a work-around, but it'd be nice to have the option.
To my knowledge, no, and I've done the same thing.
I assume your land use zones are transparent with just an outline? I can't find the documentation on it so I'm not sure on the exact property to adjust, but there are two ways to make a transparent layer with just an outline in the JavaScript API, that the Web MapViewer and Experience Builder are based on. One method is to set the fill to None, with this option clicking the center of the polygon won't register as a click and it will only register clicks on the edge. The option you want is to set the opacity to 0%. This will still register clicks in the center, but will only appear as an outline. The difference in how these are handled was a deliberate design choice to allow for perimeter only polygons.