ThinkGeo.com    |     Documentation    |     Premium Support

Adornment Layer missing in WpfMap?

Hello,


I cannot find the Adornment Layer property on the WpfMap class in Beta 2.  It is on the WinFormsMap but not on the WpfMap... Was this not exposed when doing the port?


As a work around I have tried using the ScaleBarAdornmentLayer with the Static Overlay in the following manner:


             var currentScaleBarAdornmentLayer = new ScaleBarAdornmentLayer();

            currentScaleBarAdornmentLayer.IsVisible = true;

            currentScaleBarAdornmentLayer.Location = AdornmentLocation.Center;

            base.StaticOverlay.Layers.Add("ScaleBarAdornmentLayer", currentScaleBarAdornmentLayer);


but get the following error:  "The GeoCanvas is currently not drawing.  Please call the BeginDraw method before calling this method."


 


The ScaleLineAdornmentLayer works fine but its odd to see te Adornment Layer property missing on the WpfMap and to have the Scale Bar crash.


Will you be adding the Adornment Layer at a later stage?  Or was it mistakenly not exposed? or is the WinFormsMap not supposed to expose it? Are we supposed to use the Static or Dynamic overlay instead of the Adornment Layer?


Ian.


 



Ian, 
  
 The missing property from the WPF map was an oversight and the exception is a bug.  You happen to hit the perfect storm of issues.  Sorry about that.  We had another user report the bug as well and we will fix is for the next patch release in a week.  We will also do an API compare to be sure that API are consistant between the WPF and Winforms.  Please let us know any other issues you run into. 
  
 David

Thanks for the update David, I will keep an eye out for any other issues and will post as much detail as I can… 
  
 Ian.

Ian, 
  
 Thanks for reporting this. We have committed it to our issue system and we will fix it in the next release.  
  
 Thanks, 
  
 Ben.