map_launcher icon indicating copy to clipboard operation
map_launcher copied to clipboard

[IOS][Google Map] showDirections is not showing the route screen

Open HasanAlqaisi opened this issue 6 months ago • 4 comments

Hello, When using showDirections with waypoints:

      await MapLauncher.showDirections(
        mapType: map,
        destination: Coords(
          coords.latitude,
          coords.longitude,
        ),
        waypoints: waypoints
                ?.mapIndexed(
                  (index, item) => Waypoint(
                    item.latitude,
                    item.longitude,
                    'Location ${index + 1}',
                  ),
                )
                .toList() ??
            [],
      );

The route is not showing directly on IOS, instead this screen will be showing: Screenshot 2024-08-29 at 1 19 11 PM

However, on Android it will show the directions screen directly: Screenshot 2024-08-29 at 1 22 10 PM

I am not sure why it behaves different on IOS.

HasanAlqaisi avatar Aug 29 '24 10:08 HasanAlqaisi