AnsweredAssumed Answered

fade away on lines in dynamic graphics layer in Scene

Question asked by dhope@ara.com on May 16, 2017
Latest reply on May 19, 2017 by mnielsen-esristaff

Is there a way to control the "fade" distance on a polyline drawn in a dynamic graphic layer.

 

For instance, if I use this code:

GraphicsOverlay mapOL = new GraphicsOverlay();
mapOL.SceneProperties.SurfacePlacement = SurfacePlacement.Draped;
mapOL.RenderingMode = GraphicsRenderingMode.Dynamic;
var lineSymbol = new SimpleLineSymbol() { Color = System.Windows.Media.Colors.Red, Width = 2 };

var polyLine1 = new Polyline(new MapPoint[] { new MapPoint(-100, 10), new MapPoint(-100, 11) }, SpatialReferences.Wgs84);
mapOL.Graphics.Add(new Graphic() { Geometry = polyLine1, Symbol = lineSymbol });

var polyLine2 = new Polyline(new MapPoint[] { new MapPoint(-100, 12), new MapPoint(-100, 15) }, SpatialReferences.Wgs84);
mapOL.Graphics.Add(new Graphic() { Geometry = polyLine2, Symbol = lineSymbol });

_scenegraphicsOverlays.Add(mapOL);

 

Then, polyLine1 fades from view before polyLine2 does when zooming out in a Scene. I'm trying to create a complex figure with the polylines and want them all to display at the same time.

 

How can I manage this?

 

(BTW, I know that I can use Graphics.RenderMode.Static, but prefer that the overlays be dynamic.

 

Thanks,

David

Outcomes