Customizable, performant and vendor-free vector and raster maps, flutter wrapper for maplibre-native and maplibre-gl-js (fork of flutter-mapbox-gl/maps)
The attributionButtonPosition parameter in the options of the map is ignored when calling setState on the widget, the parameter is specified as following:
Press the floating action button in the code sample - the attribution button will move to the bottom right corner, instead of staying at the TopLeft position.
After calling setState() for the whole Scaffold page, attributionButtonPosition in MaplibreMap() object becomes equal default value, e.i. attributionButtonPosition==AttributionButtonPosition.BottomRight.
Platforms
web
Version of flutter maplibre_gl
0.18.0
Bug Description
The attributionButtonPosition parameter in the options of the map is ignored when calling setState on the widget, the parameter is specified as following:
The full project to reproduce the issue can be seen on the following repository: https://github.com/Linker-123/maplibre-attribution-issue
Steps to Reproduce
Press the floating action button in the code sample - the attribution button will move to the bottom right corner, instead of staying at the TopLeft position.
Expected Results
Expected behavior: attributionButtonPosition == AttributionButtonPosition.TopLeft
Actual Results
After calling setState() for the whole Scaffold page, attributionButtonPosition in MaplibreMap() object becomes equal default value, e.i. attributionButtonPosition==AttributionButtonPosition.BottomRight.
Code Sample