The ScaleBarOverlay is instantiated showing both KM and Miles. I would like to remove the miles annotation but so far have been unable to find any method to accomplish this. Can anyone suggest how to get this done.
Solved! Go to Solution.
Hi Jerry,
We don't an API to do that. However, since the source code of ScaleBarOverlay is publicly available, you could customize it.
Here is the source code of ScaleBarOverlay that does not display miles - ScaleBarOverlay without miles.
The changes made are:
1) In createScaleBar(), I have commented out the code that was creating the second row and text (miles).
2) In onPaint(), I removed code that was drawing the second row and text.
Hi Jerry,
We don't an API to do that. However, since the source code of ScaleBarOverlay is publicly available, you could customize it.
Here is the source code of ScaleBarOverlay that does not display miles - ScaleBarOverlay without miles.
The changes made are:
1) In createScaleBar(), I have commented out the code that was creating the second row and text (miles).
2) In onPaint(), I removed code that was drawing the second row and text.