reduce zoomlevel
This commit is contained in:
1 parent
11cb14a925
commit
7b3c099736
1 file changed
+2
-2
@@ -341,8 +341,8 @@ class _ChannelMessagePathMapScreenState
|
|||||||
void _focusHop(_PathHop hop) {
|
void _focusHop(_PathHop hop) {
|
||||||
if (!hop.hasLocation) return;
|
if (!hop.hasLocation) return;
|
||||||
final targetZoom = _didReceivePositionUpdate
|
final targetZoom = _didReceivePositionUpdate
|
||||||
? max(_mapController.camera.zoom, 14.0)
|
? max(_mapController.camera.zoom, 10.0)
|
||||||
: 14.0;
|
: 12.0;
|
||||||
_mapController.move(hop.position!, targetZoom);
|
_mapController.move(hop.position!, targetZoom);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user