Skip to content

[Support Request]: Map style in navigation mode #331

@lazar89nis

Description

@lazar89nis

I am using the last version of SDK 0.5.2 and doing tests on iOS atm.
I have used https://mapstyle.withgoogle.com/ to generate a test style for our map. We want to be able to do some customisation. This works by using setMapStyle. If you look at the video, the first few frames are in, let's say, dark mode. After I press the start navigation button, my map style changes. Is there a way to fix this somehow?

await GoogleMapsNavigator.initializeNavigationSession();
final NavigationRouteStatus status =
        await GoogleMapsNavigator.setDestinations(destinations);

if (status == NavigationRouteStatus.statusOk) {
        await GoogleMapsNavigator.startGuidance();
}

EDIT: I just tested this same code on Android and it works fine, so style is there before and after navigation starts.
Another thing I did notice is that style is removed as soon I set setNavigationUIEnabled to true and its back when I set it to false.

Simulator.Screen.Recording.-.iPhone.16.Pro.Max.-.2025-04-04.at.09.18.19.mp4

Metadata

Metadata

Assignees

Labels

priority: p3Desirable enhancement or fix. May not be included in next release.type: questionRequest for information or clarification. Not an issue.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions