ThinkGeo.com    |     Documentation    |     Premium Support

Scale Adornment Layer not displaying

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!

Hi Dan,

It looks when the ratio beyond a threshold in high level, the scale line and scale bar won’t display.

You will see it when you zoom in the map.

Regards,

Ethan