Skip to content

Commit

Permalink
fix: showStopLights and showDestinationMarkers functionality on iOS (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
jokerttu authored Oct 9, 2024
1 parent 38f4f6c commit d882837
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
6 changes: 5 additions & 1 deletion example/lib/pages/navigation.dart
Original file line number Diff line number Diff line change
Expand Up @@ -800,7 +800,11 @@ class _NavigationPageState extends ExamplePageState<NavigationPage> {

return Destinations(
waypoints: _waypoints,
displayOptions: NavigationDisplayOptions(showDestinationMarkers: false),
displayOptions: NavigationDisplayOptions(
showDestinationMarkers: false,
showStopSigns: true,
showTrafficLights: true,
),
routingOptions: RoutingOptions(travelMode: _travelMode),
);
}
Expand Down
2 changes: 1 addition & 1 deletion ios/Classes/GoogleMapsNavigationView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -406,7 +406,7 @@ class GoogleMapsNavigationView: NSObject, FlutterPlatformView, ViewSettledDelega
}

func showStopSigns(show: Bool) {
_navigationView.settings.showsDestinationMarkers = show
_navigationView.settings.showsStopSigns = show
}

func isNavigationTripProgressBarEnabled() throws -> Bool {
Expand Down

0 comments on commit d882837

Please sign in to comment.