Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat!: setting the custom location button via sample #428

Merged
merged 3 commits into from
Oct 25, 2023

Conversation

kikoso
Copy link
Collaborator

@kikoso kikoso commented Oct 11, 2023

Update: this PR moves the custom location to the sample instead of managing it via the GoogleMap.

The following PR fixes an issue when a Modifier was set for GoogleMaps. This PR introduces a custom Modifier for the custom location row in the map, and adds this one only when a custom location has been added.


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 #427

@kikoso kikoso changed the title fix: fixed issue with row in GoogleMaps feat!: setting the custom location button via sample Oct 12, 2023
@kikoso
Copy link
Collaborator Author

kikoso commented Oct 13, 2023

@vladcioricagoogle , we were discussing this issue before. What do you think of this approach?

In general it would keep the API a bit leaner, and require handling the uiSettings externally to de-activate the location button in the GoogleMaps object.

@wangela
Copy link
Member

wangela commented Oct 13, 2023

Decisions we make here will also steer the implementation approach for #339.

@vladcioricagoogle
Copy link

@kikoso looks good to me, seems that we still can achieve the required functionality so I don't have anything agains it

@kikoso kikoso force-pushed the fix/fixed_issue_with_row_google_map branch from bcddee1 to 8c8a41b Compare October 20, 2023 17:00
@kikoso
Copy link
Collaborator Author

kikoso commented Oct 24, 2023

@wangela , re-run the test here, now passing.

@wangela wangela merged commit cebb6a0 into main Oct 25, 2023
11 checks passed
@wangela wangela deleted the fix/fixed_issue_with_row_google_map branch October 25, 2023 22:30
googlemaps-bot pushed a commit that referenced this pull request Oct 25, 2023
# [4.0.0](v3.1.1...v4.0.0) (2023-10-25)

* feat!: setting the custom location button via sample (#428) ([cebb6a0](cebb6a0)), closes [#428](#428)

### BREAKING CHANGES

* remove `myLocationButton` from `GoogleMap`. Equivalent functionality for customizing a map control is demonstrated in the sample app.
@googlemaps-bot
Copy link
Contributor

🎉 This PR is included in version 4.0.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.

v3.1.0 seems to ignore Modifier.weight(1f) in Column
5 participants