Location Details
<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:id="@+id/details_text_view"
android:background="@color/cardview_light_background"
android:visibility="gone"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintEnd_toEndOf="parent"
android:text="This is the text view for details of the location"/>val venue = MapsIndoors.getVenues()!!.currentVenue
activity?.runOnUiThread {
if (venue != null) {
//Animates the camera to fit the new venue
mMap!!.animateCamera(
CameraUpdateFactory.newLatLngBounds(
toLatLngBounds(venue.bounds!!),
19
)
)
}
}Last updated
Was this helpful?