From 680e33005d558d8780b5367f61ec086d123492ce Mon Sep 17 00:00:00 2001 From: m0nac0 <58807793+m0nac0@users.noreply.github.com> Date: Thu, 21 Sep 2023 13:43:32 +0200 Subject: [PATCH] fix android by removing leading and trailing quotes --- .../main/java/com/mapbox/mapboxgl/LayerPropertyConverter.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/android/src/main/java/com/mapbox/mapboxgl/LayerPropertyConverter.java b/android/src/main/java/com/mapbox/mapboxgl/LayerPropertyConverter.java index 4dcb9b03..b1305828 100644 --- a/android/src/main/java/com/mapbox/mapboxgl/LayerPropertyConverter.java +++ b/android/src/main/java/com/mapbox/mapboxgl/LayerPropertyConverter.java @@ -318,7 +318,8 @@ static PropertyValue[] interpretLineLayerProperties(Object o) { properties.add(PropertyFactory.lineSortKey(expression)); break; case "visibility": - properties.add(PropertyFactory.visibility(entry.getValue())); + // remove leading and trailing quotes from entry.getValue() + properties.add(PropertyFactory.visibility(entry.getValue().substring(1, entry.getValue().length() - 1))); break; default: break;