You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add child widget option to the map view and expose mapController in context to child widgets.
As example I have done this myself to make it easier to create overlay on top of my map widget to add buttons or other widget that should interact with the map. This kind of removes the need to either create a very big map widget with all elements that interact with it or the struggle of having to pass down the mapcontroller.
I know you can use the static function of the MapLibrePlatform class but with this you don't know which map you are interacting with in the case where you are using multiple maps at once.
Feature Description
Add child widget option to the map view and expose mapController in context to child widgets.
As example I have done this myself to make it easier to create overlay on top of my map widget to add buttons or other widget that should interact with the map. This kind of removes the need to either create a very big map widget with all elements that interact with it or the struggle of having to pass down the mapcontroller.
I know you can use the static function of the MapLibrePlatform class but with this you don't know which map you are interacting with in the case where you are using multiple maps at once.
This is my map view widget:
Then for example for zoom buttons I created following widget:
And my app.dart:
Describe alternatives you've considered
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: