Skip to content

Commit 14eadef

Browse files
committed
AAOS new map screen: increase default zoom level
1 parent cea0878 commit 14eadef

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

app/src/main/java/net/vonforst/evmap/auto/MapScreen.kt

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,8 @@ import kotlin.math.min
7373
import kotlin.time.DurationUnit
7474
import 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) {

0 commit comments

Comments
 (0)