I've encountered an issue with the flutter_mapbox_navigation package where certain options, like zoom and tilt, don't seem to be applied when set for MapBoxNavigationView.
Steps to Reproduce:
Clone the project and run the provided example.
Modify the default options for MapBoxNavigationView by changing the zoom and tilt values.
Launch the app and observe the map view.
Code:
I used the example code provided with the package and simply modified the options as follows:
// Platform messages are asynchronous, so we initialize in an async method.
Future<void> initialize() async {
// If the widget was removed from the tree while the asynchronous platform
// message was in flight, we want to discard the reply rather than calling
// setState to update our non-existent appearance.
if (!mounted) return;
_navigationOption = MapBoxNavigation.instance.getDefaultOptions();
_navigationOption.simulateRoute = true;
_navigationOption.initialLatitude = 45;
_navigationOption.initialLongitude = 5;
_navigationOption.zoom = 10.0;
_navigationOption.tilt = 5.0;
}
Expected Result:
The map view should reflect the modified options, with a zoom set to 10.0 and tilt set to 5.0.
Actual Result:
The modified options don't seem to be applied, and the map view remains unchanged.
Hello,
I've encountered an issue with the
flutter_mapbox_navigation
package where certain options, likezoom
andtilt
, don't seem to be applied when set forMapBoxNavigationView
.Steps to Reproduce:
MapBoxNavigationView
by changing thezoom
andtilt
values.Code: I used the example code provided with the package and simply modified the options as follows:
Expected Result: The map view should reflect the modified options, with a zoom set to 10.0 and tilt set to 5.0.
Actual Result: The modified options don't seem to be applied, and the map view remains unchanged.
Environment:
Flutter 3.13.4
flutter_mapbox_navigation: 0.2.0
Platform: Android
I'd appreciate it if you could take a look at this issue. Thank you in advance for your assistance and for the work you've done on this package!
Best regards