So I have a map with multiple services each with different SpatialReferences... the Map takes on one of these when initializing. I want to run an IdentifyTask on a service layer with a different SpatialReference than the map...Setting the IdentifyParameters (just like in the samples):
identifyParameters = new IdentifyParameters()
{
Geometry = e.MapPoint,
MapExtent = Map.Extent,
Width = (int)Map.ActualWidth,
Height = (int)Map.ActualHeight,
LayerOption = LayerOption.visible,
};
So Geometry and MapExtent should always be in the same SpatialReference (as the Map), but the service is in another... Setting identifyParameters.SpatialReference to that of the layer doesn't work, because it is just defining it incorrectly for Geometry and MapExtent.What should I do? Do I have to use a GeometryService and project something? If so, that is done asynchronously so I guess I would have to wait and then launch the IdentifyTask from there... This seems a bit hokey, any better ideas?Thanks a lot for any ideas!!!