Select to view content in your preferred language

Labels display but Symbology doesn't

3666
12
Jump to solution
06-26-2019 08:08 AM
DarleneRouleau
Emerging Contributor

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.

Tags (1)
0 Kudos
1 Solution

Accepted Solutions
12 Replies
NagmaYasmin
Esri Contributor

Hi Dariene,

Could you please try to use ServiceFeaturetable.UseAdvancedSymbology property and set to "false". I have seen few issues have been reported and adding that property makes symbology appears.

https://developers.arcgis.com/net/latest/wpf/api-reference/html/P_Esri_ArcGISRuntime_Data_ArcGISFeat...

By default this property is true and this is applicable if you use only ArcGIS Pro Symbol.

https://developers.arcgis.com/net/latest/android/guide/symbol-types-described.htm

Hope that helps. Thanks

0 Kudos
DarleneRouleau
Emerging Contributor

Thanks!  That fixed our specific issue. 

However, how do I know, as a client app developer with my app distributed to various organizations if this should be set to true or false?  For example, organization A does use ArcGIS Pro Symbology and organization B does not use ArcGIS Pro Symbology - if I hardcode this value to false then what happens to organization A?  

0 Kudos
NagmaYasmin
Esri Contributor

HI Darlene,

Just so you know, this is just a workaround and we are aware of this issue. The development team is looking at this. The issue may be related with recent Windows update, but not sure at this moment. I will keep you posted to this thread what I find. Thanks

0 Kudos
DarleneRouleau
Emerging Contributor

Is there a bug number I should follow to know the final resolution?

Thanks!

NagmaYasmin
Esri Contributor

Hi Darlene,

I am still working on this with other resources and definitely let you know as soon as I have any update. Thank you

0 Kudos
JeremyBridges
Frequent Contributor

Be aware that some of our clients have started seeing the same issue. We'll likely ship this workaround to them as a temporary hot-fix. But, we'll be very interested in the version of Runtime that has the full fix.

0 Kudos
MichaelBranscomb
Esri Frequent Contributor

For the full analysis and interim workaround please see the comment in this thread: https://community.esri.com/thread/235365-feature-layer-not-displaying-in-explorer-app-but-displays-i...

Regards

Mike

JeremyBridges
Frequent Contributor

Thanks for pointing that out. Unfortunately, we also see the behavior in iOS when using the Xamarin.Forms Runtime. Any thoughts for our next steps there? We've put in place the workaround, but don't know when we can remove it.

0 Kudos
MichaelBranscomb
Esri Frequent Contributor

Jeremy,

We're working closely with Microsoft to resolve this issue. 

The current recommended workaround documented in the other thread is to remove the listed Windows Updates (KBs) from Windows servers that host services consumed by Runtime applications or Windows desktops where ArcMap is used to generate Runtime Content. 

Regards

Mike

0 Kudos