AnsweredAssumed Answered

Update Symbology based on .lyr file

Question asked by bulla_b on Nov 28, 2018
Latest reply on Dec 20, 2018 by bulla_b

Hi,

 

I'm trying to figure out how to update a layers symbology using an existing .lyr file.  I can use the code below to add the layer file, but when I've already got the layer in my map all I really need to do is update the symbology.

 

            QueuedTask.Run(() =>
            {
                Uri myUri = new Uri(@"K:\DSM Shared\ArcMap Symbology\10.2 Schema\Editing Symbols\GISWRKS1.WORKS.WAT_Hydrant.lyr");
                Layer newLayer = LayerFactory.Instance.CreateFeatureLayer(myUri, MapView.Active.Map, LayerPosition.AddToTop);
            }
            );

 

Any guidance is appreciated.

 

Thanks,

Outcomes