I’m trying to add a scalelineadornmentlayer to my map. I followed the same process as the WinForms version but it is not showing up.
Here’s how I set up the layer:
ScaleLineAdornmentLayer scaleLineAdornmentLayer = new ScaleLineAdornmentLayer();
scaleLineAdornmentLayer.Location = AdornmentLocation.LowerLeft;
OnyxMap.AdornmentOverlay.Layers.Add(scaleLineAdornmentLayer);
OnyxMap.Refresh();
My map is in decimal degrees. The other overlays I have are set up like so (if it matters):
overlay.TileType = TileType.MultipleTile;
overlay.WrappingMode = WrappingMode.WrapDateline;
Is there something I’m missing to get it to display properly?
Thanks!