Select to view content in your preferred language

Excessive HTTP queries on SketchViewModel: Feature Layer snapping

102
0
3 weeks ago
GILBERTNG1
New Contributor III

ArcGIS JS API Version: 4.29

ArcGIS Server Version: 11.2

We have a custom application that has configurable feature layer snapping using the SketchViewModel class. When our drawing tool is configured with feature layer snapping enabled in SnappingOptions, the app will generate at least 100 feature layer http queries on 1 simple click on 1 feature to start sketching. 

These http requests are almost all esriSpatialRelIntersects bounding box (envelope) queries against the configured feature layer, and the underlying map service quickly reaches the max instances configured, which is 20 in our case. We would like to reduce the load on our servers when feature layer snapping is enabled in SketchViewModel, and need a solution. 

0 Replies