MultiLayer polygon spatial search

335
2
11-25-2010 05:00 AM
AdrianMarsden
Occasional Contributor III
Hi

I've been delving into the J-API for a few months now and have managed to hack the esri examples into code that does what I initially wanted, which was a simple web map with address search.

Now I'm looking at doing something bigger and need to know if it is possible (not how to do it, but any pointers gratefully received).

I need to be able to have the user draw a polygon which then fires up a spatial search across a map service which may have up to 30 layers in it, and return info from any or all of them.

Does this sound possible?  If so I'll investigate further

Many thanks

ACM
0 Kudos
2 Replies
derekswingley1
Frequent Contributor
Yes. Use an identify task and specify the geometry from your user defined polygon as the geometry property on your identify parameters.
0 Kudos
JosephShanahan
New Contributor
I have the same requirement and I am passing in a polygon into the identify task. However I keep getting an the message on the console io is undefined. If I pass in a point it is works well.
It is returning data but is not calling the callback function.
Any ideas?

Regards
Joseph Shanahan
0 Kudos