Select to view content in your preferred language

Is identifyTask dependent on current extent?

1226
10
06-30-2011 03:17 PM
PerryDonnafield
Emerging Contributor
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); });
0 Kudos
10 Replies
AndyStewart1
Occasional Contributor
Ah, I misunderstood.  Sorry, it's not accessible external to our site.
0 Kudos