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
{{ message }}
This repository has been archived by the owner on Aug 8, 2023. It is now read-only.
Style loading happens asynchronous and users are required to wait until the style has finished loading before altering any of the style properties. Capturing from #8144 that this isn't always obvious. For example they can write code as:
Executing this code would result in adding the GeoJsonSource and the CircleLayer to Style.SATELLITE instead of Style.MAPBOX_STREETS. Having setStyleUrl(String, Callback)would make it more obvious from API perspective + will remove the burden of writing boiler plate map change event code as:
The iOS/macOS equivalent is being tracked in #6386 (comment) (in conjunction with making it so that the developer sets a style rather than a style URL).
Style loading happens asynchronous and users are required to wait until the style has finished loading before altering any of the style properties. Capturing from #8144 that this isn't always obvious. For example they can write code as:
Executing this code would result in adding the GeoJsonSource and the CircleLayer to
Style.SATELLITE
instead ofStyle.MAPBOX_STREETS
. HavingsetStyleUrl(String, Callback)
would make it more obvious from API perspective + will remove the burden of writing boiler plate map change event code as:cc @mapbox/android
The text was updated successfully, but these errors were encountered: