Select to view content in your preferred language

Google Maps: How to do an Identify on an ArcGIS Server layer

643
2
06-09-2010 10:06 PM
StephenLead
Honored Contributor
There's a sample at http://resources.esri.com/help/9.3/arcgisserver/apis/javascript/gmaps/help/google_start.htm#topics/s... which shows how to create an Identify tool in JavaScript using Google Maps.

This is great, but is overly complicated. I just need to know how to perform a simple Identify function on a layer - I don't want to search 3 layers at once and return the information in a tabbed InfoWindow.

Does anyone have any sample code to do a simple Identify on a single layer?

Thanks,
Steve
0 Kudos
2 Replies
nicogis
MVP Frequent Contributor
you can change this sample with:
identifyParameters.layerIds = [2];  //layer 2

and in function addResultToMap

layers = { "2": [] }; //layer 2
0 Kudos
StephenLead
Honored Contributor
Cool, thanks for the tip.
0 Kudos