Skip to content

Add scaleBarUnits prop to MapView#4211

Merged
mfazekas merged 1 commit into
mainfrom
feat/scalebar-units
May 17, 2026
Merged

Add scaleBarUnits prop to MapView#4211
mfazekas merged 1 commit into
mainfrom
feat/scalebar-units

Conversation

@mfazekas
Copy link
Copy Markdown
Contributor

Summary

  • Adds scaleBarUnits prop to MapView supporting "metric", "imperial", and "nautical" values
  • Uses the native ScaleBarViewOptions.Units on iOS and DistanceUnits on Android

Test plan

  • Set scaleBarUnits="imperial" on MapView and verify scale bar shows feet/miles
  • Set scaleBarUnits="nautical" and verify fathoms/nautical miles
  • Verify default (metric) behavior unchanged

@mfazekas mfazekas merged commit 238b393 into main May 17, 2026
7 checks passed
@mfazekas mfazekas deleted the feat/scalebar-units branch May 17, 2026 12:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant