ThinkGeo.com    |     Blog    |     Wiki    |     Support

Scale bar with right alignment

Hi

I’m using a ScaleBarAdornmentLayer with the location set to LowerRight but as I zoom the bar resizes automatically from the right and doesn’t readjust its position to stay right aligned.

It starts like this:

As I zoom, it can shrink;

Or grow so that it overflows the chart itself;

Is there a way to keep it aligned to the right, regardless of the size?

Cheers

Hi Kev,

I read the logic of ScaleBarAdornmentLayer, it looks the drawing order for line is hard code in class from left to right, and it cannot get changed by overwrite, so it cannot be right aligned.

I will let our developers know this requirement, this feature will be considered in future version.

Regards,

Ethan

Hi Ethan

Thanks for the update :smile:

Cheers

Hi Kev,

Thanks for your suggestion, it help our product get better.

Regards,

Ethan