Accessing two layers from different services

524
1
12-05-2011 07:16 AM
SajidPareeth
New Contributor
Hi all

Pretty new to AGS JS api, and we are stuck at a simple problem. Our search is based on extents and sql query and need to fetch the search results as layers from different services. As we have already designed and established our data infrastructure and have many services serving all the layers.

My question is;

Is it possible to get 2 layers from 2 different services. Each service may have more than one layers and we are interested in getting selected ones.

How to do this using JS api? We have seen similar examples, but they are for getting selected layers from a single service.

Any tips would be really helpful.

Thanks

Sajid
0 Kudos
1 Reply
derekswingley1
Frequent Contributor
If I understand your question correctly, you should be able to do this with a graphics layer. You can query your layers to get your features and then add them to a single graphics layer.
0 Kudos