I have a map image layer in a webmap being used in an experience builder app on agol and enterprise 11.5. When I use the query widget to filter and return results in the agol app, I get results. When I use the same exact image layer in an experience builder app in enterprise, I get no results. Both webmaps in either environment have popups enabled on the layer. Do we need to use a feature service instead of a map service? If so, why does a map service work in agol?
As per the documentation, you need to use feature services or enable features on map service to use it in Query Widget.
Query widget—ArcGIS Experience Builder | Documentation
Ok yeah so this tool only works with feature services and not map services. It appears that you can use map services for this tool in the agol version of experience builder. My webmap in agol is referencing map services and the query tool works as expected. Maybe esri should update their documentation for the agol version of the widget?
Update..........This is a bug fixed in Enterprise version 12. Unfortunately we are in the process of migrating from 10.9.1 (where this tool works) to 11.5. We will not be migrating to a later version for several years. A possible workaround for this is to use the "Near Me" widget, which will produce results from geometry in a similar fashion to the query widget.