Select to view content in your preferred language

identify - no results

2746
21
04-09-2010 09:41 AM
GaryBushek
Deactivated User
Im having some issues with the identfy widget and im not sure if its the widget or my map service. I have about 20 layers and only about 4 or 5 show results when identifying. So it works for some layers and not others. To rule out the tolerance being a factor, some of the layers that dont work are polygon features so im definitely hitting the features but it returns "no results". Its not throwing any errors in the code. I have it set to identify visible layers only and I zoom to the features im trying to identify so I can physically see the features and it just doesnt identify. I compared the identifyParams.layerIds with my rest service endpoint to be sure the layer id was correct for the layer i wanted to identify on. Everything seems to look correct. It just seems to not like most of the layers for some reason. Any help is appreciated.

Thanks, Gary
Tags (2)
0 Kudos
21 Replies
BradOleson
Emerging Contributor
When you say it "should be set", how (where in the Flex code) should it be set?  How should it be handled if there are various projections for different map services in the map?
0 Kudos
DasaPaddock
Esri Regular Contributor
The Map can only be in one spatial reference. In the code you'd set the IdentifyParameters.spatialReference property. You could hard-code it to an instance of SpatialReference, or reference the Map's spatialReference like how it's done in this sample:
http://help.arcgis.com/en/webapi/flex/samples/index.html?sample=IdentifySample
0 Kudos