onVisibleAreaChanged

open fun onVisibleAreaChanged(visibleArea: Rect, context: Context)

Called when the visible (unobscured) area of the map surface changes.

Template UI elements (turn cards, action strips, route list panels) overlay the map. Use this callback to reposition the overlay within the visible region so it doesn't get hidden behind template chrome.

Parameters

visibleArea

The visible area rectangle in pixels

context

The Presentation context for density calculations