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;