As documented in my earlier questions, I am having trouble connecting multiple ArcGIS Server services to identifyTasks. Therefore, I'm wondering if there is a tool/process or if its possible to create a button or tool that mimics the identify process in ArcGIS Desktop, where I can select which layer/service I want to identify and then click a point on the map to get the results?
-
1It'd be helpful to know what js framework your using, also this post is not as much an answer, but why your asking the wrong question– CalvinCommented Feb 19, 2013 at 22:12
-
good article, and fair critique, certainly not my preferred solution, but I'm up against a deadline of this Friday and its the only piece of my app that isn't working as requested. the app is written using ESRI JS API v3.2. Problem is I have 3 services with several layers that need to be identified, only if visible.– CraigCommented Feb 20, 2013 at 1:28
Add a comment
|
1 Answer
What you want to do is set up a click event which captures where the user clicked and then iterate through the visible layers and returns features that intersect the click point.
on the esri documentation site they have this sample which looks to be similar to what you want.
-
Thanks for the reply. I am attempting to identify from multiple services(rest endpoints) and each service has at least 1 but potentially layer within it. My previous question is gis.stackexchange.com/questions/49275/… but it doesn't seem to be working for me, so I've decided to attempt the portal.– CraigCommented Feb 21, 2013 at 13:28