laptop and a wrench

Bug

When working with Spatial Relationship, the filtered points on the edge and fall just inside the polygon are only highlighted when zooming in, and disappears when zooming out.

Last Published: March 9, 2021 ArcGIS API for JavaScript
Bug ID Number BUG-000136722
SubmittedJanuary 13, 2021
Last ModifiedJune 5, 2024
Applies toArcGIS API for JavaScript
Version found4.18
Operating SystemWindows OS
Operating System Version10.0 64 Bit
StatusWill Not Be Addressed

Additional Information

This behavior is as designed. This documentation https://developers.arcgis.com/javascript/latest/query-filter/#should-i-use-client-side-query-or-server-side-query explains the behavior. Basically at a particular view scale, a point can shift left-right and top-bottom by up to half of view resolution. For accurate results, use the layer.queryFeatures() or better layer.queryObjectIds with the same query (https://developers.arcgis.com/javascript/latest/api-reference/esri-views-layers-support-FeatureFilter.html#createQuery) to get back the features ids, honoring the spatial query. Then, use the ids of the objects in the filters. The FeatureFilter is an updated doc to clarifying it is a client-side operation.

Steps to Reproduce

Bug ID: BUG-000136722

Software:

  • ArcGIS API for JavaScript

Get notified when the status of a bug changes

Download the Esri Support App

Discover more on this topic

Get help from ArcGIS experts

Contact technical support

Download the Esri Support App

Go to download options