diff --git a/MapboxGLAndroidSDK/proguard-rules.pro b/MapboxGLAndroidSDK/proguard-rules.pro index 9367d296a..864910617 100644 --- a/MapboxGLAndroidSDK/proguard-rules.pro +++ b/MapboxGLAndroidSDK/proguard-rules.pro @@ -28,7 +28,7 @@ -dontwarn com.google.auto.value.** # config for telemetry events --keep class com.mapbox.mapboxsdk.module.telemetry.** +-keep class com.mapbox.mapboxsdk.module.telemetry.** { *; } # config for additional notes -dontnote org.robolectric.Robolectric diff --git a/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/style/expressions/Expression.java b/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/style/expressions/Expression.java index 9cc9554ca..f27a4f738 100644 --- a/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/style/expressions/Expression.java +++ b/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/style/expressions/Expression.java @@ -4746,7 +4746,9 @@ public static Expression convert(@NonNull JsonArray jsonArray) { final String operator = jsonArray.get(0).getAsString(); final List arguments = new ArrayList<>(); - + if (operator.equals("within")) { + return within(Polygon.fromJson(jsonArray.get(1).toString())); + } for (int i = 1; i < jsonArray.size(); i++) { JsonElement jsonElement = jsonArray.get(i); if (operator.equals("literal") && jsonElement instanceof JsonArray) {