/tripkit/TripKitAndroidUI/com.skedgo.tripkit.ui.map.home/TripKitMapFragment/ensureStopMarker

ensureStopMarker

\ fun ensureStopMarker(stop: ScheduledStop, shouldHideInfoWindow: Boolean = false, keepInfoWindowUntilAutoHide: Boolean = false)

Shows stop's marker and its info window, adding the marker first if it is not on the map.

Parameters

androidJvm

shouldHideInfoWindow when true the info window is auto-hidden after INFO_WINDOW_AUTO_HIDE_DELAY_MS and the stop is not kept as the persistent selection.
keepInfoWindowUntilAutoHide opt-in, and only meaningful alongside shouldHideInfoWindow. The viewport marker refresh toggles marker visibility and re-adds markers, which destroys an open info window; without this the window disappears about a second in, long before the auto-hide runs. When true the window is restored across those refreshes until the auto-hide fires. Defaults to false so existing callers are unchanged.