AnsweredAssumed Answered

Time-aware FeatureLayer, click queries not time-aware?

Question asked by aaron.averett on May 4, 2020
Latest reply on May 6, 2020 by ubatsukh-esristaff

I'm working on an application that contains three time-aware feature layers in a MapView, with the time extent being controlled by the time slider widget.  Each FeatureLayer has a PopupTemplate set, so that when the user clicks on the map, it performs a query for nearby features and invokes the popup*.


Everything is working properly, except that there isn't any filtering for features that occurred outside of the MapView's selected time window, so the user will intend to click on what appears to be a single marker for an event that occurred in his desired time window, and will be presented with data for both that event, and potentially many others that occurred outside the desired time window.  Frequently, the marker that's visible on the map isn't even the first one shown.

I've read and reread the docs for both the PopupTemplate and FeatureLayer classes, and I don't see any way of explicitly telling it that I only want the pseudo-identify popup query to include features that are actually being displayed on the map.  The only API feature I can see that's even close to what I want is the FeatureLayer's "useViewTime" property, which I've tried setting to true explicitly, but that doesn't seem to make a difference.


So, how can make it so that when the user clicks on the map, only features that are actually being shown on the map right now appear in the callout?


*As an aside, does this pseudo-identify feature have a name?