Skip to content

feat(marker): add imageBase64 and anchor support#587

Open
esannihith wants to merge 1 commit intogooglemaps:mainfrom
esannihith:main
Open

feat(marker): add imageBase64 and anchor support#587
esannihith wants to merge 1 commit intogooglemaps:mainfrom
esannihith:main

Conversation

@esannihith
Copy link
Copy Markdown

@esannihith esannihith commented May 8, 2026

This PR adds support for custom map markers and fixes #579.

Instead of passing an image URL and handling downloads natively, this approach adds an imageBase64 prop. It feels more natural for React Native since image fetching can stay in JS, while the native side only focuses on rendering.

Changes
-Added imageBase64 to MarkerOptions for Android and iOS
-Added anchor support ({u, v}) for properly centering custom markers like avatars
-Added an integration test in the example app to verify base64 marker rendering works correctly

Fixes #579

Pre-launch Checklist

  • I read the Contributor Guide and followed the process outlined there for submitting PRs.
  • I signed the CLA.
  • I listed at least one issue that this PR fixes in the description above.
  • I updated/added relevant documentation
  • I added new tests to check the change I am making
  • All existing and new tests are passing.

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.

[Feature request]: Support custom marker icons (bitmap/URI) via icon field in MarkerOptions

2 participants