Select to view content in your preferred language

Esri Flex API Feature Request - Add Token parameter to IdentifyTask

620
1
03-25-2013 06:49 AM
GISDev1
Deactivated User
I would like to do an IdentifyTask on secure layers.

Please add a token parameter to the "IdentifyParameters" class which is input to the IndentifyTask

var identifyParams:IdentifyParameters = new IdentifyParameters();
                identifyParams.returnGeometry = true;
                identifyParams.tolerance = 3;
                identifyParams.width = myMap.width;
                identifyParams.height = myMap.height;
                identifyParams.geometry = event.mapPoint;
                identifyParams.mapExtent = myMap.extent;
                identifyParams.spatialReference = myMap.spatialReference;
                identifyParams.token = myTokenhere;


                var clickGraphic:Graphic = new Graphic(event.mapPoint, clickPtSym);
                clickGraphicsLayer.add(clickGraphic);

                identifyTask.execute(identifyParams, new AsyncResponder(myResultFunction, myFaultFunction, clickGraphic));


Is this already possible and I just missed it somewhere?
Tags (2)
0 Kudos
1 Reply
SarthakDatt
Frequent Contributor
You set the token property on the IdentifyTask: http://resources.arcgis.com/en/help/flex-api/apiref/com/esri/ags/tasks/BaseTask.html#token

Alternatively, you can append the token to the url itself.
0 Kudos