Animate camera while zooming to a user.
This commit is contained in:
parent
372ff9ff97
commit
0f3e4046e1
@ -28,10 +28,12 @@ fun MapboxMap?.zoomToLocation(locationData: LocationData, preserveCurrentZoomLev
|
||||
} else {
|
||||
INITIAL_MAP_ZOOM_IN_PREVIEW
|
||||
}
|
||||
this?.cameraPosition = CameraPosition.Builder()
|
||||
.target(LatLng(locationData.latitude, locationData.longitude))
|
||||
.zoom(zoomLevel)
|
||||
.build()
|
||||
this?.easeCamera {
|
||||
CameraPosition.Builder()
|
||||
.target(LatLng(locationData.latitude, locationData.longitude))
|
||||
.zoom(zoomLevel)
|
||||
.build()
|
||||
}
|
||||
}
|
||||
|
||||
fun MapboxMap?.zoomToBounds(latLngBounds: LatLngBounds) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user