@Test public void getWelcomeMapIsNotEmpty() { assertFalse(TextUtils.isEmpty(ImageComponent.getWelcomeMap(true))); assertTrue(ImageComponent.getWelcomeMap(true).startsWith(BASE_URL)); assertFalse(TextUtils.isEmpty(ImageComponent.getWelcomeMap(false))); assertTrue(ImageComponent.getWelcomeMap(false).startsWith(BASE_URL)); }
public static String getWelcomeMap(boolean isSmall) { MapboxStaticImage client = new MapboxStaticImage.Builder() .setAccessToken(Constants.MAPBOX_ACCESS_TOKEN) .setWidth(isSmall ? smallWidth : largeWidth) .setHeight(isSmall ? smallHeight : largeHeight) .setStyleId(com.mapbox.services.Constants.MAPBOX_STYLE_SATELLITE) .setLat(0.0).setLon(0.0) .setZoom(0) .build(); return client.getUrl().toString(); }
ImageComponent { public static String getWelcomeMap(boolean isSmall) { MapboxStaticImage client = new MapboxStaticImage.Builder() .setAccessToken(Constants.MAPBOX_ACCESS_TOKEN) .setWidth(isSmall ? smallWidth : largeWidth) .setHeight(isSmall ? smallHeight : largeHeight) .setStyleId(com.mapbox.services.Constants.MAPBOX_STYLE_SATELLITE) .setLat(0.0).setLon(0.0) .setZoom(0) .build(); return client.getUrl().toString(); } }
ImageComponent { public static String getWelcomeMap(boolean isSmall) { MapboxStaticImage client = new MapboxStaticImage.Builder() .setAccessToken(Constants.MAPBOX_ACCESS_TOKEN) .setWidth(isSmall ? smallWidth : largeWidth) .setHeight(isSmall ? smallHeight : largeHeight) .setStyleId(com.mapbox.services.Constants.MAPBOX_STYLE_SATELLITE) .setLat(0.0).setLon(0.0) .setZoom(0) .build(); return client.getUrl().toString(); }  }
ImageComponent { public static String getWelcomeMap(boolean isSmall) { MapboxStaticImage client = new MapboxStaticImage.Builder() .setAccessToken(Constants.MAPBOX_ACCESS_TOKEN) .setWidth(isSmall ? smallWidth : largeWidth) .setHeight(isSmall ? smallHeight : largeHeight) .setStyleId(com.mapbox.services.Constants.MAPBOX_STYLE_SATELLITE) .setLat(0.0).setLon(0.0) .setZoom(0) .build(); return client.getUrl().toString(); }  static String getWelcomeMap(boolean isSmall); static String getLocationMap(Position position, boolean isSmall); static String getRouteMap(Position origin, Position destination, String geometry, boolean isSmall); }
ImageComponent { public static String getWelcomeMap(boolean isSmall) { MapboxStaticImage client = new MapboxStaticImage.Builder() .setAccessToken(Constants.MAPBOX_ACCESS_TOKEN) .setWidth(isSmall ? smallWidth : largeWidth) .setHeight(isSmall ? smallHeight : largeHeight) .setStyleId(com.mapbox.services.Constants.MAPBOX_STYLE_SATELLITE) .setLat(0.0).setLon(0.0) .setZoom(0) .build(); return client.getUrl().toString(); }  static String getWelcomeMap(boolean isSmall); static String getLocationMap(Position position, boolean isSmall); static String getRouteMap(Position origin, Position destination, String geometry, boolean isSmall);  }