Skip to content

chore: Improve Scalebar example in readme - #343

Merged
wangela merged 2 commits into
googlemaps:mainfrom
DarrylBayliss:chore/update-scalebar-documentation
Jul 28, 2023
Merged

chore: Improve Scalebar example in readme#343
wangela merged 2 commits into
googlemaps:mainfrom
DarrylBayliss:chore/update-scalebar-documentation

Conversation

@DarrylBayliss

@DarrylBayliss DarrylBayliss commented Jul 21, 2023

Copy link
Copy Markdown
Contributor

This PR makes a small improvement to the readme documentation, showing a fuller example on how to use ScaleBar and DisappearingScaleBar.

I made the mistake of using these composables inside GoogleMap, causing the crash encountered in #335. The idea is this change makes it less likely others would do the same.

Before submitting your PR, there are a few things you can do to make sure it goes smoothly:

  • Make sure to open a GitHub issue as a bug/feature request before writing your code! That way we can discuss the change, evaluate designs, and agree on the general idea
  • Ensure the tests and linter pass
  • Code coverage does not decrease (if any source code was changed)
  • Appropriate docs were updated (if necessary)

Fixes #335

Make readme documentation for Scalebar composable clearer.
@DarrylBayliss DarrylBayliss changed the title Improve Scalebar example in readme chore: Improve Scalebar example in readme Jul 21, 2023
@wangela

wangela commented Jul 28, 2023

Copy link
Copy Markdown
Member

Thank you for this improvement to the README! ack that instrumentation tests fail on forks; merging this since it's only a README edit.

@wangela
wangela merged commit 2422f06 into googlemaps:main Jul 28, 2023
@DarrylBayliss
DarrylBayliss deleted the chore/update-scalebar-documentation branch July 30, 2023 21:49
@googlemaps-bot

Copy link
Copy Markdown
Contributor

🎉 This PR is included in version 2.13.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

ScaleBar / DisappearingScaleBar: androidx.compose.ui.node.LayoutNode cannot be cast to com.google.maps.android.compose.MapNode

3 participants