Select to view content in your preferred language

MultiLayer symbol from WebMap not working

411
0
11-30-2022 01:09 PM
BjørnarSundsbø1
Frequent Contributor

Hi,

This post is a supplement to https://community.esri.com/t5/arcgis-pro-questions/attributte-driven-symbology-configured-in-arcgis/... for the same issue, but from the ArcGIS for .NET Runtime.

See reference post about what has been done for the web map.

Background
We configure symbology for GraphicOverlays in a WebMap in Portal for increased flexibility and being able to use the same symbology across multiple Web Aps and desktop clients.

Symbology should be combined of multiple symbols:

- Drop shape (direction indicator) that can change color and rotation based on attribute
- Static image/font symbol based on attribute that does NOT rotate or change color

Implementation

The WPF application reads the web map with FeatureLayer and ArcGisMapImageLayer holding information about renderer, labeling, popup information, scale visibility, etc.

Traditional symbology with UniqueValueRenderer works just fine, however, the issue arise when the symbol is composed in MultiLayer symbol (I assume).

When doing GraphicOverlay.Renderer = Renderer.FromJson(imageLayer.Render.ToJson()), the symbols are mostly correct, but the expressions for rotation and symbol color are not applied. It does not appear that the renderer .ToJson() or that of the service definition does not contain any of the visual expressions defined in ArcGIS Pro.

Rendering layer data directly in the map as ArcGisMapImageLayer works just fine with rotation, but not when a copy of the renderer is used on GraphicOverlay.

Can I assume it works in ArcGisMapImageLayer because the features are rendered on the server?

 Is there a way to make this work?

0 Kudos
0 Replies