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

[google_maps_flutter_platform_interface] Add improvements to BitmapDescriptor API #6687

Conversation

jokerttu
Copy link
Contributor

@jokerttu jokerttu commented May 8, 2024

This PR adds improvements to BitmapDescriptor API for google_maps_flutter_platform_interface

  • Adds better support for marker size and scaling behaviour with AssetMapBitmap and BytesMapBitmap.
  • Deprecates BitmapDescriptor.fromAssetImage in favor of BitmapDescriptor.asset and AssetMapBitmap.create.
  • Deprecates BitmapDescriptor.fromBytes in favor of BitmapDescriptor.bytes and BytesMapBitmap

This is prequel PR for: #4055
Containing only changes to google_maps_flutter_platform_interface package.

Follow up PR:s will hold the platform and app-facing plugin implementations.

Linked issue: flutter/flutter#34657

Pre-launch Checklist

If you need help, consider asking for advice on the #hackers-new channel on Discord.

Copy link
Contributor

@stuartmorgan stuartmorgan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just some minor notes.

@jokerttu jokerttu force-pushed the feature/google_maps_flutter_platform_interface_bitmapdescriptor_improvements branch from 04e97b8 to c7a56e4 Compare May 13, 2024 10:45
@jokerttu jokerttu force-pushed the feature/google_maps_flutter_platform_interface_bitmapdescriptor_improvements branch 3 times, most recently from 8fa54ff to 2970bbd Compare May 20, 2024 19:39
@jokerttu jokerttu force-pushed the feature/google_maps_flutter_platform_interface_bitmapdescriptor_improvements branch from 2970bbd to a6a49a4 Compare May 23, 2024 06:44
@jokerttu
Copy link
Contributor Author

jokerttu commented May 23, 2024

Just some minor notes.

@stuartmorgan
I’ve made the changes based on your review.

- Improves public api for width and height values of the MapBitmap
- Also includes small fix to test naming.
@jokerttu jokerttu force-pushed the feature/google_maps_flutter_platform_interface_bitmapdescriptor_improvements branch from a6a49a4 to 8b51bc0 Compare May 24, 2024 09:05
Copy link
Contributor

@stuartmorgan stuartmorgan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks!

@stuartmorgan stuartmorgan added the autosubmit Merge PR when tree becomes green via auto submit App label May 24, 2024
@auto-submit auto-submit bot merged commit 40268e7 into flutter:main May 24, 2024
74 checks passed
engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this pull request May 27, 2024
auto-submit bot pushed a commit to flutter/flutter that referenced this pull request May 27, 2024
flutter/packages@7b423f5...b7bcb4b

2024-05-26 engine-flutter-autoroll@skia.org Roll Flutter from cb26a01 to 6564471 (3 revisions) (flutter/packages#6796)
2024-05-26 stuartmorgan@google.com Update Flutter wiki links (flutter/packages#6789)
2024-05-25 engine-flutter-autoroll@skia.org Roll Flutter from 8dd0831 to cb26a01 (12 revisions) (flutter/packages#6794)
2024-05-24 stuartmorgan@google.com [ci] Switch podspec check over to ARM (flutter/packages#6791)
2024-05-24 stuartmorgan@google.com [pointer_interceptor] Add Swift Package Manager support (flutter/packages#6790)
2024-05-24 engine-flutter-autoroll@skia.org Roll Flutter from 8d955cd to 8dd0831 (22 revisions) (flutter/packages#6788)
2024-05-24 joonas.kerttula@codemate.com [google_maps_flutter_platform_interface] Add improvements to BitmapDescriptor API (flutter/packages#6687)

If this roll has caused a breakage, revert this CL and stop the roller
using the controls here:
https://autoroll.skia.org/r/flutter-packages-flutter-autoroll
Please CC flutter-ecosystem@google.com,rmistry@google.com on the revert to ensure that a human
is aware of the problem.

To file a bug in Flutter: https://github.com/flutter/flutter/issues/new/choose

To report a problem with the AutoRoller itself, please file a bug:
https://issues.skia.org/issues/new?component=1389291&template=1850622

Documentation for the AutoRoller is here:
https://skia.googlesource.com/buildbot/+doc/main/autoroll/README.md
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
autosubmit Merge PR when tree becomes green via auto submit App p: google_maps_flutter
Projects
None yet
2 participants