ThinkGeo.com    |     Documentation    |     Premium Support

Question about ScaleLineMapTool

Hi,

We are currently using ScaleLineAdornmentLayer to show scaleline. It seems there is also another way for scaleline called ScaleLineMapTool. I did test ScaleLineMapTool and it looks better but problem is that it is hard to see if map is dark. e.g. on this picture it’s the upper scaleline (lower is ScaleLineAdornmentLayer)

image

Is there some way to have similar white borders for ScaleLineMapTool than ScaleLineAdornmentLayer uses ? Also it would be nice to know what is the actual difference of these two and which one should be used ?

Br, Simo

Hi Simo,

Perfect timing! We’ve recently made great improvements to ScaleLineAdornmentLayer, this is now the better way to go.

  1. You can control the AboveLabelTextStyle and BelowLabelTextStyle individually
  2. AdornmentOverlay is now inherited from WpfDrawingOverlay , which is more responsive, sharper on high-resolution displays, smoother during map panning, and able to take advantage of hardware acceleration.
  3. You can set mask, the HaloPen, and lots of things.
  4. Pull the latest HowDoI sample develop branch, (not master), you can see this sample, have a try.

ScaleLineMapTool is supposed to be a quick way to add a simple scaleline, but there’s hardly any way to customize it. ScaleLineAdornmentLayer would be the way to go.

Thanks,
Ben

Hi,

So is this improved ScaleLineAdornmentLayer available yet on some official release ? If not do you have any estimation when it would be available ?

Br, Simo

Hi Simo,

It’s only in beta branch for now. It’s scheduled to be in the next release v14.5.0 next May.

Thanks,
Ben

Hi,

Thanks for the info. We’ll wait for the May then :slight_smile:

Br, Simo