[6.8.0][Opt]调整行程全览地图显示的范围
This commit is contained in:
@@ -716,7 +716,9 @@ class TravelRealityView @JvmOverloads constructor(
|
|||||||
if (mLocation != null) {
|
if (mLocation != null) {
|
||||||
boundsBuilder.include(LatLng(mLocation!!.latitude, mLocation!!.longitude))
|
boundsBuilder.include(LatLng(mLocation!!.latitude, mLocation!!.longitude))
|
||||||
}
|
}
|
||||||
|
mSiteList.forEach {
|
||||||
|
boundsBuilder.include(LatLng(it.latLng.lat!!, it.latLng.lon!!))
|
||||||
|
}
|
||||||
val cameraUpdate = CameraUpdateFactory.newLatLngBoundsRect(
|
val cameraUpdate = CameraUpdateFactory.newLatLngBoundsRect(
|
||||||
boundsBuilder.build(),
|
boundsBuilder.build(),
|
||||||
AutoSizeUtils.dp2px(context, leftPadding.toFloat()),
|
AutoSizeUtils.dp2px(context, leftPadding.toFloat()),
|
||||||
@@ -1335,7 +1337,9 @@ class TravelRealityView @JvmOverloads constructor(
|
|||||||
if (mLocation != null) {
|
if (mLocation != null) {
|
||||||
boundsBuilder.include(LatLng(mLocation!!.latitude, mLocation!!.longitude))
|
boundsBuilder.include(LatLng(mLocation!!.latitude, mLocation!!.longitude))
|
||||||
}
|
}
|
||||||
|
mSiteList.forEach {
|
||||||
|
boundsBuilder.include(LatLng(it.latLng.lat!!, it.latLng.lon!!))
|
||||||
|
}
|
||||||
val cameraUpdate = CameraUpdateFactory.newLatLngBoundsRect(
|
val cameraUpdate = CameraUpdateFactory.newLatLngBoundsRect(
|
||||||
boundsBuilder.build(),
|
boundsBuilder.build(),
|
||||||
AutoSizeUtils.dp2px(context, leftPadding.toFloat()),
|
AutoSizeUtils.dp2px(context, leftPadding.toFloat()),
|
||||||
|
|||||||
Reference in New Issue
Block a user