AnsweredAssumed Answered

maxAllowableOffset on 3.x API and Query task

Question asked by amarsden on Nov 2, 2018
Latest reply on Nov 2, 2018 by amarsden

OK - still legacy code - only half way through refactoring it all as the current code (mostly) works.

 

But one issue.  The returned geometry from a query task is being over generalized.

 

I have tried using maxAllowableOffset but nothing changes.

 

Code

                var queryTask = new esri.tasks.QueryTask(mapserviceCustom + "/0");
                var query = new esri.tasks.Query();
                query.maxAllowableOffset = 0.0001;
                query.returnGeometry = true;
                query.outFields = ["*"];              
                query.where = "username = 'BobbyTables'";
                queryTask.execute(query);

 

I've played around with different values, but the returned geometry is still slightly different from the actual feature returned from a normal request.

 

Any ideas people?

 

Cheers


ACM

Outcomes