From 9a01b1b443d48f5252d3bf7cb9fb20c2ab6f1bf5 Mon Sep 17 00:00:00 2001 From: Levi Lesches Date: Mon, 5 May 2025 05:09:59 -0400 Subject: [PATCH] Cleanup --- src/client/lib/src/pages/home.dart | 3 ++- src/shared/lib/src/graph/algorithm.dart | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/client/lib/src/pages/home.dart b/src/client/lib/src/pages/home.dart index f9032db..f5da5ee 100644 --- a/src/client/lib/src/pages/home.dart +++ b/src/client/lib/src/pages/home.dart @@ -12,7 +12,7 @@ class HomePage extends ReactiveWidget { @override Widget build(BuildContext context, HomeModel model) => Scaffold( - appBar: AppBar(title: const Text("Counter")), + appBar: AppBar(title: const Text("Bing Maps")), body: Row( children: [ SizedBox( @@ -69,6 +69,7 @@ class HomePage extends ReactiveWidget { for (final (stop, reason) in model.pathWaypoint) Marker( markerId: MarkerId(stop.id.id), position: stop.coordinates.toLatLng(), + flat: true, infoWindow: InfoWindow( title: reason, snippet: stop.description, diff --git a/src/shared/lib/src/graph/algorithm.dart b/src/shared/lib/src/graph/algorithm.dart index f18bc3e..b62eb64 100644 --- a/src/shared/lib/src/graph/algorithm.dart +++ b/src/shared/lib/src/graph/algorithm.dart @@ -32,7 +32,7 @@ Iterable? findPath(Coordinates start, Coordinates end) { endPoint: end, ); log("Finding a route using ${state.hash()}"); - final result = aStar(state, limit: 1000, verbose: false); + final result = aStar(state); if (result == null) continue; paths.add(result.reconstructPath()); }