Select to view content in your preferred language

Identifier for two map services

922
2
04-03-2017 10:18 PM
VeenaHosur
Emerging Contributor

HI,

I have two map services which both services contains some layers.I want identifier for both services.How can i do it.

http://xxx:6080/arcgis/rest/services/adc/yyyy/MapServer

http://xxx:6080/arcgis/rest/services/abc/zzz/MapServer

Tags (1)
0 Kudos
2 Replies
RobertScheitlin__GISP
MVP Emeritus

Veena,

   The IdentifyTask is what you are looking for then. Here is a sample on using the IdentifyTask (the sample one identifies one map service layer but can easily be modified to do more like you are wanting):

Display identify results in popup | ArcGIS API for JavaScript 3.20 

KenBuja
MVP Esteemed Contributor

Here's an example of using multiple services in an IdentifyTask: https://community.esri.com/message/442805?commentID=442805#comment-382158 

It's old and should be updated to modern syntax, but it give you an idea of how it's done.