File tree Expand file tree Collapse file tree
app/src/main/java/net/vonforst/evmap/auto Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -73,6 +73,8 @@ import kotlin.math.min
7373import kotlin.time.DurationUnit
7474import kotlin.time.TimeSource
7575
76+ private const val DEFAULT_ZOOM_MYLOCATION = 14f
77+
7678/* *
7779 * Main map screen showing either nearby chargers or favorites.
7880 *
@@ -394,7 +396,7 @@ class MapScreen(ctx: CarContext, val session: EVMapSession) :
394396 mapSurfaceCallback.animateCamera(
395397 map.cameraUpdateFactory.newLatLngZoomBearing(
396398 latLng,
397- 13f ,
399+ DEFAULT_ZOOM_MYLOCATION ,
398400 bearing
399401 )
400402 )
@@ -719,7 +721,7 @@ class MapScreen(ctx: CarContext, val session: EVMapSession) :
719721 val map = map ? : return
720722 val update = map.cameraUpdateFactory.newLatLngZoomBearing(
721723 LatLng .fromLocation(location),
722- 13f ,
724+ DEFAULT_ZOOM_MYLOCATION ,
723725 if (withCompass) getBearing(location) else 0f
724726 )
725727 if (animated) {
You can’t perform that action at this time.
0 commit comments