AnsweredAssumed Answered

Are there known issues showing an ArcGISTiledMapServiceLayer and FeatureLayers from a GeodatabaseFeatureTable in the same map when they have different SpatialReferences?

Question asked by mprickard on Oct 17, 2014
Latest reply on Feb 10, 2015 by sfisher

The ArcGISTiledMapServiceLayer is http://services.arcgisonline.com/ArcGIS/rest/services/World_Imagery/MapServer

My FeatureLayers are GeodatabaseFeatureTables coming from a local geodatabase file.

The SpatialReference for the Service is 102100.

The SpatialReference for the geodatabase/FeatureLayers is 2285.

If I add just the FeatureLayers to the map, it looks fine.

If I add the Imagery Map Service and then my FeatureLayers, I see only the Satellite Imagery.  My FeatureLayers seem to load ok, but are not visible on the map.  At least there are no errors in my LayerLoaded handler.

If I force the code to load my feature layers first, so the Map has a spatial reference of 2285, then add the Image Service layer, I get the following error in my LayerLoaded handler.

"Layer cannot be displayed on a Map with a different spatial reference."

 

Any ideas how I can get these two data sources to play nice together?

Outcomes