IsMapReady
Semantic property key for indicating whether the map has been fully initialized and is ready for user interaction.
The map is considered ready when the map style has been loaded (see: com.tomtom.sdk.map.display.style.StyleDescriptor, com.tomtom.sdk.map.display.style.StandardStyles). The visual content of the map does not affect map readiness, so map tiles may be blank, and icons or text may not yet be rendered.
When the map is ready, the value will be true; otherwise, it will be false during initialization.
It is commonly used in Compose UI tests to verify that the map is in a ready state before proceeding with further assertions or interactions.
Example usages:
@Test
fun testMapReadiness() {
composeTestRule.waitUntilExactlyOneExists(
matcher = SemanticsMatcher.expectValue(IsMapReady, true),
timeoutMillis = 10000,
)
}Content copied to clipboard