perryd

Is identifyTask dependent on current extent?

Discussion created by perryd on Jun 30, 2011
Latest reply on Jan 26, 2012 by agesriuser
What I am finding out is that the identifyTask does not return results once my scale reaches a certain point. At large scales it works fine. At small scales past about 50,000 it no longer works.

My spatial reference is webmercator(102100) if that helps, and the layer I am trying to identify on has a min scale set at 72225. So, it would seem that after 72225 it would no longer work but should work up until then.

I am using esri.geometry.getScale to determine the scale and I assume that the scale returned is correct.

Anyone have any ideas? Thanks.

Here is my identify code:
cadastral.identifyTask = new esri.tasks.IdentifyTask(mapUrl);

  cadastral.identifyParams = new esri.tasks.IdentifyParameters();
  cadastral.identifyParams.tolerance = 0;
  cadastral.identifyParams.returnGeometry = true;
  var identifyArray = [9];
  cadastral.identifyParams.layerIds = identifyArray;
  cadastral.identifyParams.layerOption = esri.tasks.IdentifyParameters.LAYER_OPTION_VISIBLE; //.LAYER_OPTION_ALL;
  cadastral.identifyParams.geometry = evt.mapPoint;
  cadastral.identifyParams.mapExtent = cadastral.map.extent;
  cadastral.identifyTask.execute(cadastral.identifyParams, function (idResults) { cadastral.identify.setupIdentifyResults(idResults, evt); }, function (idResults) { cadastral.showError(idResults, evt); });

Outcomes