mirror of
https://github.com/zjs81/meshcore-open.git
synced 2026-07-16 05:40:46 +10:00
reduce zoomlevel
This commit is contained in:
@@ -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