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
|
@override
|
||||||
Widget build(BuildContext context, HomeModel model) => Scaffold(
|
Widget build(BuildContext context, HomeModel model) => Scaffold(
|
||||||
appBar: AppBar(title: const Text("Counter")),
|
appBar: AppBar(title: const Text("Bing Maps")),
|
||||||
body: Row(
|
body: Row(
|
||||||
children: [
|
children: [
|
||||||
SizedBox(
|
SizedBox(
|
||||||
|
@ -69,6 +69,7 @@ class HomePage extends ReactiveWidget<HomeModel> {
|
||||||
for (final (stop, reason) in model.pathWaypoint) Marker(
|
for (final (stop, reason) in model.pathWaypoint) Marker(
|
||||||
markerId: MarkerId(stop.id.id),
|
markerId: MarkerId(stop.id.id),
|
||||||
position: stop.coordinates.toLatLng(),
|
position: stop.coordinates.toLatLng(),
|
||||||
|
flat: true,
|
||||||
infoWindow: InfoWindow(
|
infoWindow: InfoWindow(
|
||||||
title: reason,
|
title: reason,
|
||||||
snippet: stop.description,
|
snippet: stop.description,
|
||||||
|
|
|
@ -32,7 +32,7 @@ Iterable<StopState>? findPath(Coordinates start, Coordinates end) {
|
||||||
endPoint: end,
|
endPoint: end,
|
||||||
);
|
);
|
||||||
log("Finding a route using ${state.hash()}");
|
log("Finding a route using ${state.hash()}");
|
||||||
final result = aStar(state, limit: 1000, verbose: false);
|
final result = aStar(state);
|
||||||
if (result == null) continue;
|
if (result == null) continue;
|
||||||
paths.add(result.reconstructPath());
|
paths.add(result.reconstructPath());
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue