Skip to content

fix(android): reposition Google watermark with edge insets#55

Merged
lodev09 merged 3 commits intomainfrom
fix/edge-insets-watermark
Mar 23, 2026
Merged

fix(android): reposition Google watermark with edge insets#55
lodev09 merged 3 commits intomainfrom
fix/edge-insets-watermark

Conversation

@lodev09
Copy link
Copy Markdown
Collaborator

@lodev09 lodev09 commented Mar 23, 2026

Summary

Android Google Maps SDK's setPadding() does not reposition the Google watermark/logo — it stays pinned to the bottom-left and gets clipped when bottom padding is applied. This PR manually adjusts the watermark position using translationY/translationX to match the current edge insets, with animation support when called via command with duration.

Also includes an iOS fix to track raw edge insets separately from layoutMargins (which includes safe area insets when insetsLayoutMarginsFromSafeArea is enabled), preventing the animation tick from drifting.

Type of Change

  • Bug fix

Test Plan

  • Set edgeInsets with bottom padding and verify Google watermark is visible above the padded area
  • Call setEdgeInsets command with duration and verify watermark animates smoothly
  • Verify iOS edge insets animation doesn't drift with insetsLayoutMarginsFromSafeArea enabled

Checklist

  • I tested on iOS
  • I tested on Android
  • I tested on Web
  • I updated the documentation (if needed)

lodev09 added 3 commits March 24, 2026 02:47
setPadding() on Android Google Maps SDK does not reposition the
Google watermark/logo. Use translationY/X to manually adjust it.
Animate the translation when called via command with duration.
@lodev09 lodev09 merged commit d4387a8 into main Mar 23, 2026
3 checks passed
@lodev09 lodev09 deleted the fix/edge-insets-watermark branch March 23, 2026 19:25
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.

1 participant