Select to view content in your preferred language

Identify Task from Interactive SDK

649
1
09-23-2010 09:41 AM
ChristineZeller
Occasional Contributor
I got the identify tool to work (straight from the Interactive SDK) but instead of using the ESRI_StreetMap_World_2D service I want to use the World_Topo_Map service from http://server.arcgisonline.com/ArcGIS/rest/services/World_Topo_Map/MapServer but the tool doesn't work when I switch out the services.  I'm wondering if it has something to do with the projection of the two base services.  The ESRI StreetMap World 2D is NAD 83 Spatial Reference: 4326 and the World Topo Map service is web mecator aux Spatial Reference: 102100.

Is this my problem?  I'm thinking since the identify tool works Client.Task.IdentifyParameters,
Geometry = clickPoint and MapExtent = MyMap.Extent maybe the Web Mecator projection is throwing it off.

Can someone help me with this and let me know if I am on the right train of thought and if so is there a way to get the identify tool to work with a web mecator base map?
0 Kudos
1 Reply
ChristineZeller
Occasional Contributor
Ok,  I changed some more services around and I can get it to work with the Topo Web Mecator service if I set my identify tool to work with a Web Mecator service.  Now I'm wondering how do I use a web mecator base cache layer, which will define my spatial ref and extents but then identify a layer in a different coordinate system (spatial ref 4269). 

My thinking is...when the mouse click happens it grabs the x,y parameters in Spatial Reference: 102100 (esri meters) and then tries to pass those parameters the identify layer with the x,y web mecator coords but the identify layer is in spatial ref 4269, (esri DecimalDegrees) so nothing gets identified.  How do I convert my mouse click from 102100 to 4269? 

How do convert the current Map properties so the identify parameters are in a acceptable spatial ref?
0 Kudos