Select to view content in your preferred language

Naming featurelayer

486
1
05-15-2012 02:31 AM
KåreRasmussen
Emerging Contributor
Hi everyone.

I´m currently working with the silverlight API and have successfully added a featurelayer in my code-behind like this:

                FeatureLayer fLayer = new FeatureLayer();
                fLayer.Url = "http://localhost/ArcGIS/rest/services/WasteWater/WasteWaterTest1/MapServer/2"
                Map.Layers.Insert(0, fLayer);

The layer is displayed in the layerlist/legend with the right color but there is no name displayed. How can I set the layername for the legend?

Any suggestions are greatly appreciated
/Kaare
0 Kudos
1 Reply
KåreRasmussen
Emerging Contributor
Found the answer by chance. It´s a matter of setting the ID-property
0 Kudos