barbeau / gpstest

The #1 open-source Android GNSS/GPS test program
Apache License 2.0
1.74k stars 361 forks source link

Add scale bar to map (Google and OSMDroid) #395

Open jidanni opened 4 years ago

jidanni commented 4 years ago

The map already has a North Arrow. Now all that it needs to be a standard map is a scale bar.

barbeau commented 4 years ago

@jidanni Thanks for the feedback!

Looks like OSMDroid supports this natively: https://osmdroid.github.io/osmdroid/javadocAll/org/osmdroid/views/overlay/ScaleBarOverlay.html

...but to my knowledge Google Maps does not.

There are also third-party libraries to achieve this: https://github.com/pengrad/MapScaleView

It may be easiest to just use the 3rd party library on both for consistency.

jidanni commented 4 years ago

I also found https://stackoverflow.com/questions/2094648/google-maps-api-how-to-add-a-scale-measure-on-a-map

barbeau commented 4 years ago

I've opened an issue on the Android Maps Utils library to support this feature too - https://github.com/googlemaps/android-maps-utils/issues/701.

stale[bot] commented 3 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] commented 3 years ago

This issue has been automatically marked as stale because it has not had recent activity. Please comment here if it is still valid so that we can reprioritize. Thank you!

stale[bot] commented 2 years ago

This issue has been automatically marked as stale because it has not had recent activity. Please comment here if it is still valid so that we can reprioritize. Thank you!

stale[bot] commented 1 year ago

Closing this. Please reopen if you believe it should be addressed. Thank you for your contribution.

stale[bot] commented 1 year ago

This issue has been automatically marked as stale because it has not had recent activity. Please comment here if it is still valid so that we can reprioritize. Thank you!

stale[bot] commented 9 months ago

This issue has been automatically marked as stale because it has not had recent activity. Please comment here if it is still valid so that we can reprioritize. Thank you!

barbeau commented 9 months ago

Not stale