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

[android] #4702 - upgrade default styles for Android - #4812

Merged
tobrun merged 1 commit into
1ec5-default-styles-4577from
4702-default-styles-upgrade
Apr 28, 2016
Merged

tobrun merged 1 commit into
1ec5-default-styles-4577from
4702-default-styles-upgrade

Conversation

@tobrun

@tobrun tobrun commented Apr 23, 2016

Copy link
Copy Markdown
Member

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

@tobrun tobrun added Android Mapbox Maps SDK for Android ⚠️ DO NOT MERGE Work in progress, proof of concept, or on hold ✓ ready for review labels Apr 23, 2016
@tobrun

tobrun commented Apr 23, 2016 •

Copy link
Copy Markdown
Member Author

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)

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Probably not a big deal, but I think the intention is to place Outdoors between Streets and Light in ordered lists.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Details make perfection, and perfection is not a detail.

@1ec5

1ec5 commented Apr 23, 2016 •

Copy link
Copy Markdown
Contributor

Note: I implemented to not expose style version number publicly #4759 (comment).

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.

@tobrun

tobrun commented Apr 24, 2016

Copy link
Copy Markdown
Member Author

@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>

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There’s a missing > in all these comments’ closing </ul> tags.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Well spotted ;)

@tobrun

tobrun commented Apr 26, 2016 •

Copy link
Copy Markdown
Member Author

All suggestions have been added:

  • US locale
  • removed int range annoation
  • added closing </ul> tag

@tobrun tobrun removed ⚠️ DO NOT MERGE Work in progress, proof of concept, or on hold ✓ ready for review labels Apr 27, 2016
* @deprecated use {@link #getMapboxStreetsUrl(int)} instead.
*/
public static final String MAPBOX_STREETS = "mapbox://styles/mapbox/streets-v8";
@Deprecated

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@jfirebaugh

Copy link
Copy Markdown
Contributor

LGTM other than that!

@tobrun

tobrun commented Apr 28, 2016

Copy link
Copy Markdown
Member Author

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.
@tobrun
tobrun force-pushed the 4702-default-styles-upgrade branch from ff387ef to 5b007f8 Compare April 28, 2016 14:04
@tobrun
tobrun merged commit 5b007f8 into 1ec5-default-styles-4577 Apr 28, 2016
@tobrun
tobrun deleted the 4702-default-styles-upgrade branch April 28, 2016 14:05
@bleege bleege added this to the android-v4.1.0 milestone Apr 28, 2016
@bleege

bleege commented Apr 28, 2016

Copy link
Copy Markdown
Contributor

Adding milestone so that we know this will ship in 4.1.0.

@tobrun

tobrun commented Apr 28, 2016

Copy link
Copy Markdown
Member Author

@bleege I initially didn't add one because I didn't knew the ETA on new styles. Thanks for noticing this!

@bleege

bleege commented May 6, 2016

Copy link
Copy Markdown
Contributor

Discussed with @1ec5 today and he's merging his iOS branch 1ec5-default-styles-4577 into master today.

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 master.

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

Labels

Android Mapbox Maps SDK for Android

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants