Skip to content

Commit

Permalink
Adds more method overloading for Forward Geocode API
Browse files Browse the repository at this point in the history
  • Loading branch information
sdtaheri committed May 31, 2019
1 parent 408d604 commit 2be9e37
Show file tree
Hide file tree
Showing 9 changed files with 225 additions and 73 deletions.
2 changes: 1 addition & 1 deletion CedarMapsSDK/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ apply plugin: 'signing'
apply plugin: 'com.github.dcendents.android-maven'

group = "com.cedarmaps"
version = "4.0.0"
version = "4.0.1"
def siteUrl = 'http://cedarmaps.com'
def gitUrl = 'http://cedarmaps.com/git'

Expand Down
282 changes: 217 additions & 65 deletions CedarMapsSDK/src/main/java/com/cedarstudios/cedarmapssdk/CedarMaps.java

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ public interface OnStyleConfigurationListener {
/**
* This method is called on UiThread when the tiles are configured successfully.
*/
void onSuccess(Style.Builder styleBuilder);
void onSuccess(@NonNull Style.Builder styleBuilder);

/**
* This method is called on UiThread when configuring the tiles is failed.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ public void onViewCreated(@NonNull View view, @Nullable Bundle savedInstanceStat
CedarMapsStyle.VECTOR_LIGHT, new OnStyleConfigurationListener() {
@SuppressWarnings("ConstantConditions")
@Override
public void onSuccess(Style.Builder styleBuilder) {
public void onSuccess(@NonNull Style.Builder styleBuilder) {
mapboxMap.setStyle(styleBuilder, style -> {
style.addImage(DEPARTURE_IMAGE, ContextCompat.getDrawable(getContext(), R.drawable.cedarmaps_marker_icon_start));
style.addImage(DESTINATION_IMAGE, ContextCompat.getDrawable(getContext(), R.drawable.cedarmaps_marker_icon_end));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ public void onViewCreated(@NonNull final View view, @Nullable Bundle savedInstan
CedarMapsStyleConfigurator.configure(
CedarMapsStyle.RASTER_LIGHT, new OnStyleConfigurationListener() {
@Override
public void onSuccess(Style.Builder styleBuilder) {
public void onSuccess(@NonNull Style.Builder styleBuilder) {
mMapboxMap.setStyle(styleBuilder, style ->
circleManager = new CircleManager(mMapView, mMapboxMap, style));
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ public void onViewCreated(@NonNull View view, @Nullable Bundle savedInstanceStat
CedarMapsStyleConfigurator.configure(
CedarMapsStyle.VECTOR_LIGHT, new OnStyleConfigurationListener() {
@Override
public void onSuccess(Style.Builder styleBuilder) {
public void onSuccess(@NonNull Style.Builder styleBuilder) {
mapboxMap.setStyle(styleBuilder, style -> {
if (getActivity() == null) {
return;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ public void onViewCreated(@NonNull View view, @Nullable Bundle savedInstanceStat

CedarMapsStyleConfigurator.configure(CedarMapsStyle.VECTOR_DARK, new OnStyleConfigurationListener() {
@Override
public void onSuccess(com.mapbox.mapboxsdk.maps.Style.Builder styleBuilder) {
public void onSuccess(@NonNull com.mapbox.mapboxsdk.maps.Style.Builder styleBuilder) {
mapboxMap.setStyle(styleBuilder);
}

Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ Then, add this to the `build.gradle` of your **app** module:

```groovy
dependencies {
implementation 'com.cedarmaps:CedarMapsSDK:4.0.0'
implementation 'com.cedarmaps:CedarMapsSDK:4.0.1'
}
```

Expand Down
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
GROUP=com.cedarmaps
VERSION_NAME=4.0.0
VERSION_NAME=4.0.1

# Project-wide Gradle settings.

Expand Down

0 comments on commit 2be9e37

Please sign in to comment.