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.