Skip to content

feat: Allow for info window customization on advanced markers#862

Open
petereair wants to merge 1 commit intogooglemaps:mainfrom
petereair:info-window-customization
Open

feat: Allow for info window customization on advanced markers#862
petereair wants to merge 1 commit intogooglemaps:mainfrom
petereair:info-window-customization

Conversation

@petereair
Copy link
Copy Markdown

This follows the approach used by regular markers which has separate functions for customizing just the content and customizing the whole window. Currently there is no way to customize either.

This is a duplicate of #823 which I needed to close to open this under the correct account for the CLA.


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 #822 🦕

(cherry picked from commit 1bb27ca)
@kikoso kikoso force-pushed the info-window-customization branch from 18eee33 to 0c7d1ec Compare April 3, 2026 02:29
* @param pinConfig the PinConfig object that will be used for the advanced marker
* @param iconView the custom view to be used on the advanced marker
* @param collisionBehavior the expected collision behavior
* @param infoWindowContent optional composable lambda expression for customizing the
Copy link
Copy Markdown
Collaborator

@kikoso kikoso Apr 9, 2026

Choose a reason for hiding this comment

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

AdvancedMarkerInfoWindow maps its trailing lambda to the infoWindow parameter of AdvancedMarkerImpl (which replaces the entire info window, including the frame/background), the KDoc should be updated to reflect that:

@param content optional composable lambda expression for customizing the entire info window

(this is also how it is documented in MarkerInfoWindow and AdvancedMarkerImpl)

* @param pinConfig the PinConfig object that will be used for the advanced marker
* @param iconView the custom view to be used on the advanced marker
* @param collisionBehavior the expected collision behavior
* @param infoWindowContent optional composable lambda expression for customizing the
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Update documentation here too.

@kikoso
Copy link
Copy Markdown
Collaborator

kikoso commented Apr 9, 2026

@petereair , this looks good, I have left a couple of minor comments. Would you be able to add a sample to the Advanced Markers Activity?

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.

Support info window customization for advanced markers

3 participants