Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Move style related MapController functions to a nullable StyleController? style object. #143

Open
Tracked by #113
josxha opened this issue Nov 14, 2024 · 0 comments
Labels
feature New feature or request
Milestone

Comments

@josxha
Copy link
Owner

josxha commented 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 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

@josxha 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
@josxha josxha added this to the v0.2.0 milestone Nov 14, 2024
@josxha josxha added the feature New feature or request label Nov 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New feature or request
Projects
Status: Todo
Development

No branches or pull requests

1 participant