-
Notifications
You must be signed in to change notification settings - Fork 128
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
Add intial state param for map markers in order to support having info window content opened by default #352
Comments
Hi @vladcioricagoogle . We have the following public methods in
and
|
Hi @kikoso , How could these be used to have the marker info window opened by default? The marker composable is not supporting anything related with initial state and also I don't see any place where showInfoWindow() method can be called by default. Do you have any other thoughts? |
What about using a LaunchedEffect? They can be used to run a block just once. You could use something like this:
|
I don't see how would this work. Also how would be the markerState passed, you have access to it only in the onClick methods from the MarkerInfoWindow. |
@vladcioricagoogle I think @kikoso meant:
Accessing
|
@vladcioricagoogle Also be aware that you can only have a single open marker info window at a time due to |
Hi @vladcioricagoogle , If you haven't solved this yet, you can add to the BasicMapActivity the following block in the line 150:
This will open by default the info window from one of the markers. And as @bubenheimer pointed out, only one info window can be open at a single time. |
Thanks for suggestions! |
For now map markers are not supporting to have the info window content opened by default. You are only able to press on the marker and then see it. Markers should support to let the clients decide if the info window content is opened or closed when rendering the UI.
The text was updated successfully, but these errors were encountered: