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
On Android, the Style class can only be access after it has loaded (onStyleLoaded() gets called).
A common problem on maplibre/flutter-maplibre-gl was that users try to add layers in the onMapCreated() callback. This does not work. To guide the user, we can move the style related functions (methods listed in the Style API docs) to an arbitrary StyleController class.
Move style related MapController functions to a nullable StyleController? style object. This object can be used from a getter or accessed as a parameter from onStyleLoaded(style).
Tasklist
TODO
The text was updated successfully, but these errors were encountered:
josxha
changed the title
Move style related MapController functions to a nullable StyleController? style object. This object can be used from a getter or accessed as a parameter from onStyleLoaded(style)
Move style related MapController functions to a nullable StyleController? style object.
Nov 14, 2024
On Android, the Style class can only be access after it has loaded (onStyleLoaded() gets called).
A common problem on maplibre/flutter-maplibre-gl was that users try to add layers in the
onMapCreated()
callback. This does not work. To guide the user, we can move the style related functions (methods listed in the Style API docs) to an arbitraryStyleController
class.Move style related MapController functions to a nullable
StyleController? style
object. This object can be used from a getter or accessed as a parameter fromonStyleLoaded(style)
.Tasklist
TODO
The text was updated successfully, but these errors were encountered: