Repository navigation
[android] #4702 - upgrade default styles for Android - #4812
Conversation
|
Note: I implemented to not expose style version number publicly #4759 (comment). |
| Style.getDarkStyleUrl(AppConstant.STYLE_VERSION), | ||
| Style.getSatelliteStyleUrl(AppConstant.STYLE_VERSION), | ||
| Style.getSatelliteStreetsStyleUrl(AppConstant.STYLE_VERSION), | ||
| Style.getOutdoorsStyleUrl(AppConstant.STYLE_VERSION) |
There was a problem hiding this comment.
Probably not a big deal, but I think the intention is to place Outdoors between Streets and Light in ordered lists.
There was a problem hiding this comment.
Details make perfection, and perfection is not a detail.
The JavaDoc comments should tell the developer where they can find the latest version. Also, I think the documentation should at least say what version the library is currently using, even if it isn’t exposed publicly in an API. Otherwise, how will the developer know that MapView defaults to version 9 of the Streets style? Once the runtime styling API lands, this fact will be important to the developer, even if they can’t use the library’s constant. |
|
@1ec5 thank you for the 👀 and great remarks! will fixup the commits |
| * Get versioned url of Mapbox streets style. | ||
| * <p> | ||
| * <ul> | ||
| * <li>Current default version is 9.</li> |
There was a problem hiding this comment.
There’s a missing > in all these comments’ closing </ul> tags.
|
All suggestions have been added:
|
| * @deprecated use {@link #getMapboxStreetsUrl(int)} instead. | ||
| */ | ||
| public static final String MAPBOX_STREETS = "mapbox://styles/mapbox/streets-v8"; | ||
| @Deprecated |
There was a problem hiding this comment.
Let's just leave the existing constants pointed at v8 styles. This will avoid the (admittedly small) chance of any breaking change, and encourage the use of the versioned methods.
|
LGTM other than that! |
|
Co-workers and CI approved, going to squash commits and merge it into the branch from the #4759 PR. |
…nition in favour versioned styling methods.
ff387ef to
5b007f8
Compare
|
Adding milestone so that we know this will ship in |
|
@bleege I initially didn't add one because I didn't knew the ETA on new styles. Thanks for noticing this! |
|
Discussed with @1ec5 today and he's merging his iOS branch In the future we should try to avoid PRs against other development branches as it leads to confusion about what has landed versus what hasn't landed. Landed being defined as merged into |
Android equivalent of #4759 needed for #4577 and #4702.
Targets the #4759 PR so we can merge all platforms at once.
@danswick @cammace :
when #4759 and this PR lands we will need to update the examples and docs.
👀 @jfirebaugh @1ec5
cc @bleege @zugaldia