Select to view content in your preferred language

Identify on FeatureLayer using Coordinates

3421
17
04-26-2011 07:59 AM
by Anonymous User
Not applicable
All of the examples/samples I've seen dealing with FeatureLayers and Identify deal with mouse clicks. Is there a way to do the same with a coordinate passed from, say, an address locator?

Thanks!

rGibson
Tags (2)
0 Kudos
17 Replies
RobertScheitlin__GISP
MVP Emeritus
Russell,

   Sure if you look at the code the only thing the mouse click is doing is getting some geometry to use for the identifyTask.
0 Kudos
by Anonymous User
Not applicable
I guess in the samples, I'm missing where the coordinate from the click is being passed to the FeatureServer. Does the FeatureServer inheritently listen for a map click?

Thanks!

r
0 Kudos
by Anonymous User
Not applicable
I'm not using a MapServer, rather a FeatureServer. And in the FeatureServer samples there is no use of an identifyTask. At least in the Esri online Samples, that is.

r
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Russell,

   Oh... If you are talking about a FeatureLayer than the info window that is poped up when you click on the feature has nothing to do with the identifyTask. Is that what you are talking about?
0 Kudos
by Anonymous User
Not applicable
Russell,

   Oh... If you are talking about a FeatureLayer than the info window that is poped up when you click on the feature has nothing to do with the identifyTask. Is that what you are talking about?


Exactly. Can you run an identifyTask on a FeatureLayer as you would a MapService layer?

Thanks
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Russell,

   You can but... What is your end game??? The identify task is suited for clicking on a map and having it return results from all map services that are included in that map including featureLayers. If you are just trying to get specific info about the actual feature (graphic) that you click on then why not just use the info window or the new 2.3 PopUpInfo?
0 Kudos
by Anonymous User
Not applicable
Russell,

   You can but... What is your end game??? The identify task is suited for clicking on a map and having it return results from all map services that are included in that map including featureLayers. If you are just trying to get specific info about the actual feature (graphic) that you click on then why not just use the info window or the new 2.3 PopUpInfo?


Right. I want to pass the coordinates returned from an address locator into multiple layers of a featureService. I have done so successfully using MapServices but was going to try using a featureService. So can u use the URL of a featureService in an identifyTask?

Thanks again.
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Russell,

   The documentation says
URL to the ArcGIS Server REST resource that represents a map layer
So I would say yes.
0 Kudos
by Anonymous User
Not applicable
Hmmmm...oddly enough, if I simply plug in the URL of a FeatureService in the identifyTask, the identifyTask hangs. All reference systems are identical between the map, locator service and the feature service. Let you know what I find out. Thanks!

r
0 Kudos