I am using the Scale Bar Add-in from OpenLayers 2 and it doesn't have a geodesic option.
I know that the Scale Line has a geodesic option, but considering that the Scale Bar has a wider variety of options, it would be nice to introduce he geodesic option in this one too.
Could anyone help me with this? How could I introduce a geodesic option in the Scale Bar Add-in?
Thank you
I think I solved it.
First of all, I added a geodesic option, so the user can choose if he wantss the geodesic measures or not.
Second, I created this function (based on the ScaleLine):
Third, I inserted the geodesic ratio in other functions:
I hope this is useful.