kuiperfoliage

Best practices:Reprojection (changing spatialreference) for layers within Map Control

Discussion created by kuiperfoliage on Jul 18, 2012
Latest reply on Jul 19, 2012 by MBranscomb-esristaff
What would Esri recommend for reprojecting all the layers within a Map Control ?

Assuming you already have a collection of layers exposed on your map, i would imagine doing the following:

1. Remove the layers from the Map control (but keep them alive as objects).

2. Set the desired spatial reference for the layers on the Map Extent property

3. re-add the layers to the map control

Where tiled layers probably wont be able to reproject (and wont' show up?)
Dynamic layers will automatically reproject
and Feature and GraphicsLayers have to be manually be reprojected using the Local.LocalGeometryService.Start() method ?

Is this correct ?

Outcomes