Skip to content

Conversation

@afarber
Copy link
Owner

@afarber afarber commented Dec 2, 2025

This PR overhauls Example03Markers to showcase more library features and adds a new OnInfoWindowCloseListener to the library.

Library changes

  • Add OnInfoWindowCloseListener - fires when info window is closed (manually or via auto-dismiss)
  • Add Marker.showInfoWindow() and Marker.hideInfoWindow() for programmatic control
  • Add UiSettings.infoWindowAutoDismiss to auto-close info windows after a duration
  • Bump version to 0.12.0

Example03Markers rewrite

  • Replace add/remove/clear buttons with prev/next marker navigation
  • Add FAB to toggle info window on selected marker
  • Add status toolbar showing selection index, marker title, and camera state
  • Status text turns red when info window is open (demonstrates close listener)
  • Clicking a marker selects it and animates camera to center
  • Extract reusable components: MarkerToolbar, StatusToolbar, Constants, MarkerData
  • Use real Bochum landmark locations as POIs

@afarber afarber changed the title Improve Example03Markers with reusable toolbar components Improve Example03Markers with navigation and info window features Dec 6, 2025
@afarber afarber merged commit 8bcee17 into main Dec 6, 2025
12 checks passed
@afarber afarber deleted the improve-example-3 branch December 6, 2025 18:47
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.

2 participants