Skip to content

Commit

Permalink
bumped StaticMapCriteria constant style strings (#1109)
Browse files Browse the repository at this point in the history
  • Loading branch information
Langston Smith authored Jan 23, 2020
1 parent 7c24920 commit 9b821b0
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
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";

/**
* 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";

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

0 comments on commit 9b821b0

Please sign in to comment.