Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bumped StaticMapCriteria constant style strings to new versions #1109

Merged
merged 1 commit into from
Jan 23, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -40,15 +40,15 @@ public final class StaticMapCriteria {
*
* @since 3.0.0
*/
public static final String STREET_STYLE = "streets-v10";
public static final String STREET_STYLE = "streets-v11";

/**
* Mapbox Outdoors is a general-purpose map with curated tilesets and specialized styling tailored
* to hiking, biking, and the most adventurous use cases.
*
* @since 3.0.0
*/
public static final String OUTDOORS_STYLE = "outdoors-v10";
public static final String OUTDOORS_STYLE = "outdoors-v11";


/**
Expand All @@ -57,15 +57,15 @@ public final class StaticMapCriteria {
*
* @since 3.0.0
*/
public static final String LIGHT_STYLE = "light-v9";
public static final String LIGHT_STYLE = "light-v10";

/**
* Mapbox Dark style's a subtle, full-featured map designed to provide geographic context while
* highlighting the data on your analytics dashboard, data visualization, or data overlay.
*
* @since 3.0.0
*/
public static final String DARK_STYLE = "dark-v9";
public static final String DARK_STYLE = "dark-v10";

/**
* Mapbox Satellite is our full global base map that is perfect as a blank canvas or an overlay
Expand All @@ -82,35 +82,35 @@ public final class StaticMapCriteria {
*
* @since 3.0.0
*/
public static final String SATELLITE_STREETS_STYLE = "satellite-streets-v10";
public static final String SATELLITE_STREETS_STYLE = "satellite-streets-v11";

/**
* Navigation specific style that shows only the necessary information while a user is driving.
*
* @since 3.0.0
*/
public static final String NAVIGATION_PREVIEW_DAY = "navigation-preview-day-v2";
public static final String NAVIGATION_PREVIEW_DAY = "navigation-preview-day-v3";

/**
* Navigation specific style that shows only the necessary information while a user is driving.
*
* @since 3.0.0
*/
public static final String NAVIGATION_PREVIEW_NIGHT = "navigation-preview-night-v2";
public static final String NAVIGATION_PREVIEW_NIGHT = "navigation-preview-night-v3";

/**
* Navigation specific style that shows only the necessary information while a user is driving.
*
* @since 3.0.0
*/
public static final String NAVIGATION_GUIDANCE_DAY = "navigation-guidance-day-v2";
public static final String NAVIGATION_GUIDANCE_DAY = "navigation-guidance-day-v3";
langsmith marked this conversation as resolved.
Show resolved Hide resolved

/**
* Navigation specific style that shows only the necessary information while a user is driving.
*
* @since 3.0.0
*/
public static final String NAVIGATION_GUIDANCE_NIGHT = "navigation-guidance-night-v2";
public static final String NAVIGATION_GUIDANCE_NIGHT = "navigation-guidance-night-v3";
langsmith marked this conversation as resolved.
Show resolved Hide resolved

private StaticMapCriteria() {
throw new AssertionError("No Instances.");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ public void styleId_getsAddedToUrlCorrectly() throws Exception {
.accessToken(ACCESS_TOKEN)
.styleId(StaticMapCriteria.DARK_STYLE)
.build();
assertTrue(staticMap.url().toString().contains("styles/v1/mapbox/dark-v9/static/"));
assertTrue(staticMap.url().toString().contains("styles/v1/mapbox/dark-v10/static/"));
}

@Test
Expand Down