Skip to content

Change the unit of scalebar according distance#1010

Merged
Chaoba merged 2 commits into
masterfrom
kl-scalebar-unit
Jul 12, 2019
Merged

Change the unit of scalebar according distance#1010
Chaoba merged 2 commits into
masterfrom
kl-scalebar-unit

Conversation

@Chaoba
Copy link
Copy Markdown
Contributor

@Chaoba Chaoba commented Jul 11, 2019

Resolves #1009.
Unit will change to km if current unit is meter and distance > 1000m, and for ft it will change to mile if distance > 5280ft.

Comment thread plugin-scalebar/src/main/java/com/mapbox/pluginscalebar/ScaleBarConstants.java Outdated
@tobrun
Copy link
Copy Markdown
Member

tobrun commented Jul 11, 2019

cc @chloekraw

@Chaoba Chaoba merged commit 2ff5655 into master Jul 12, 2019
@Chaoba Chaoba deleted the kl-scalebar-unit branch July 12, 2019 01:59
@langsmith langsmith mentioned this pull request Jul 29, 2019
12 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Support showing distance in km vs meters

3 participants