Skip to content
This repository was archived by the owner on Aug 8, 2023. It is now read-only.
This repository was archived by the owner on Aug 8, 2023. It is now read-only.

Style.java #9338

Closed
Closed

Description

@tobrun

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.

cc @mapbox/android

Activity

  1. added
    Android
    SEMVER-MAJOR
    on Jun 22, 2017
  2. added this to the milestone on Oct 2, 2017
  3. tobrun commented on Jan 18, 2018

    @tobrun
    MemberAuthor

    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.

  4. tobrun commented on Jan 18, 2018

    @tobrun
    MemberAuthor

    Additional API changes will need to occur around the OnMapReady and the OnStyleLoadedListener callback. These will be given an additional Style parameter:

    public interface OnMapReadyCallback {
      void onMapReady(MapboxMap mapboxMap, Style style);
    }
  5. LukasPaczos commented on Jan 18, 2018

    @LukasPaczos
    Contributor

    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.

  6. modified the milestones: , on Apr 13, 2018
  7. removed this from the milestone on Sep 19, 2018
  8. added this to the android-v7.0.0 milestone on Oct 24, 2018
  9. self-assigned this
    on Oct 24, 2018
  10. tobrun commented on Dec 10, 2018

    @tobrun
    MemberAuthor

    done in #13484

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

AndroidSEMVER-MAJOR

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions