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

fix!: create bitmapdescriptor from asset on android #347

Merged
merged 2 commits into from
Nov 20, 2024

Conversation

jokerttu
Copy link
Contributor

@jokerttu jokerttu commented Nov 19, 2024

On android BitmapDescriptorFactory.fromPath was used to load bitmap image for markers and groundoverlays, but this is ment to be used only with absolute paths to images. And iOS impelementation uses named assets as well, this PR changes android to use assets as well.

In future there most likely will be need for better control to support custom images, like from url, or given as bytearray. This PR will fix existing behaviour so that it can be used with custom asset images.

Example app is updated have exampe how to add custom asset images to the project.

Fixes #346
Fixes #154

  • Tests pass
  • Appropriate changes to documentation are included in the PR

example/android/app/build.gradle Outdated Show resolved Hide resolved
@jokerttu jokerttu force-pushed the fix/create-bitmapdescriptor-from-asset-on-android branch from ade6831 to c75fe1b Compare November 20, 2024 10:11
@jokerttu jokerttu force-pushed the fix/create-bitmapdescriptor-from-asset-on-android branch from c75fe1b to c2c255f Compare November 20, 2024 10:20
@jokerttu jokerttu changed the title fix: create bitmapdescriptor from asset on android fix!: create bitmapdescriptor from asset on android Nov 20, 2024
@jokerttu jokerttu merged commit fb9da83 into main Nov 20, 2024
13 checks passed
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.

Failed to decode image. The provided image must be a Bitmap Add custom markers
2 participants