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 was archived by the owner on Aug 8, 2023. It is now read-only.
Repository navigation
This repository was archived by the owner on Aug 8, 2023. It is now read-only.
With #9280, style has been promoted to be part of the public api that core exposes for bindings. This change could be propagated to the Android binding by exposing Style.java to match the API and functionality more closely. Adding a semver label, though we could ship intermediate versions with deprecation notices.
I'm proposing the match the API exposed by style.hpp. Concretely this will mean moving methods from MapboxMap.java to Style.java. With this move, I'm also suggesting to implement the native methods directly on Style.java instead of facading through NativeMapView.java.
Additional API changes will need to occur around the OnMapReady and the OnStyleLoadedListener callback. These will be given an additional Style parameter:
Great idea @tobrun. With this change, we could restrict adding new style URL/path to the constructor or builder of the Style which would indicate that all the programmatically added components should be re-added, as we are creating a new Style object. This would easily resolve most of the issues from #10947.
Activity
tobrun commentedon Jan 18, 2018
I'm proposing the match the API exposed by style.hpp. Concretely this will mean moving methods from
MapboxMap.javatoStyle.java. With this move, I'm also suggesting to implement the native methods directly onStyle.javainstead of facading throughNativeMapView.java.tobrun commentedon Jan 18, 2018
Additional API changes will need to occur around the OnMapReady and the OnStyleLoadedListener callback. These will be given an additional Style parameter:
LukasPaczos commentedon Jan 18, 2018
Great idea @tobrun. With this change, we could restrict adding new style URL/path to the constructor or builder of the
Stylewhich would indicate that all the programmatically added components should be re-added, as we are creating a newStyleobject. This would easily resolve most of the issues from #10947.tobrun commentedon Dec 10, 2018
done in #13484