ThinkGeo.com    |     Documentation    |     Premium Support

Toggling Overlays Distorts Dynamic Shapes

When toggling the Dynamic layer on and off the shapes of Ellipses distorts.


Map1.LayerSwitcher.Enabled = true;


ProfitabilityLayer = new InMemoryLayer();

ProfitabilityLayer.ZoomLevelSet.ZoomLevel01.DefaultPointStyle = PointStyles.Capital2;

ProfitabilityLayer.ZoomLevelSet.ZoomLevel01.DefaultAreaStyle = AreaStyles.Evergreen1;

ProfitabilityLayer.ZoomLevelSet.ZoomLevel01.ApplyUntilZoomLevel = ApplyUntilZoomLevel.Level20;

Map1.DynamicLayers.Add( "ProfitabilityLayer", ProfitabilityLayer );

 


if ( ! ProfitabilityLayer.Features.ContainsKey( CurrentMarker.Key ) )

    ProfitabilityLayer.Features.Add(    CurrentMarker.Key, 

                                                           new Feature( new EllipseShape(    CurrentMarker.Position,

                                                                                                                   3, 

                                                                                                                   GeographyUnit.DecimalDegree, 

                                                                                                                   DistanceUnit.Mile ) ) );


 



Reggie, 
  
   Thanks for reporting this, I will take a look at this and get back with you soon.  By the way how badly does it distort the ellipse?  As you switch it on and off does it distort different ways or oscillate between two different views? 
  
 David

Reggie, 
  
   Any news on my queries?  We are going to setup the test for this today and should have some news soon. 
  
 David

Here are some before and after of 3 mile radius ellipses.

Initial render appears circular.  

Toggle off then on again from panel distorts them.



29-Before.png (55.3 KB)
30-After.png (56.5 KB)

Reggie, 
  
 We worked on this today and are tracking it down.  It seems to be a projection issue but we haven’t found the solution yet.  What we also noticed that was strange is that if you zoom out then the ellipse gets further and further from the real center point, it’s confusing but we will find an answer.  I will let you know as soon as I know more. 
  
 David