AnsweredAssumed Answered

Will future version of Javascript API support non-hosted feature services for QueryTask.executeForExtent and/or FeatureLayer.queryExtent?

Question asked by MichaelGayheart on Jul 11, 2014
Latest reply on Jun 22, 2015 by bsvensson-esristaff

I currently use ArcGISDynamicMapServiceLayer in a map with multiple layers of the same data symbolized differently based on scale. I use layerDefinitions to set all the definition queries as a user filters the map. The performance problem comes when trying to zoom to the selection with polygons since I have to use a queryTask, get the geometries back, and get the extent. This is done on data published from our own ArcGIS Servers.


It would be very nice to use the QueryTask.ExecuteForExtent method so I don't have to get back all the features and their geometries, but this is only available to hosted feature services at 3.9. Is there a technical challenge that makes it not possible to implement for non-hosted services?