Cleanup
This commit is contained in:
parent
a5090988d5
commit
9a01b1b443
2 changed files with 3 additions and 2 deletions
|
@ -12,7 +12,7 @@ class HomePage extends ReactiveWidget<HomeModel> {
|
|||
|
||||
@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<HomeModel> {
|
|||
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,
|
||||
|
|
|
@ -32,7 +32,7 @@ Iterable<StopState>? 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());
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue