AnsweredAssumed Answered

Labels display but Symbology doesn't

Question asked by DarleneRouleau_SE on Jun 26, 2019
Latest reply on Jul 10, 2019 by MBranscomb-esristaff

I am trying to add and view a single feature layer from our service with the following code:

 

_viewModel.AddLayerFromUrl(
"http://orbittest.miner.com:6080/arcgis/rest/services/GRU_ElectricDistribution/MapServer/1", "Support Structure");

_viewModel.AddLayerFromUrl(
"http://orbittest.miner.com:6080/arcgis/rest/services/GRU_ElectricDistribution/MapServer/15", "Lines");

public void AddLayerFromUrl(string layerUrl, string name)
{
var layer = new FeatureLayer(new Uri(layerUrl))
{
Id = name,
Name = name,
IsVisible = true,
ScaleSymbols = false
};
Map.OperationalLayers.Add(layer);
}

 

The "Lines" layer displays fine in the map.  The "Support Structure" labels appear, but the actual symbols / graphics do not.  I have tried with ScaleSymbols set to true and false.  I am using 100.5.  I have reproduced this in the Sample App WPF provided by Esri.  

 

See attached screenshot.

 

I also attached the json for the troublesome layer.  Note that there are multiple layers on this service that demonstrate this behavior.  I also attached the .json for Anchor Guy which is a simple layer that reproduces the problem.

Outcomes