Prevent Style.validateState() exception on location state updates (#3574)
This commit is contained in:
@@ -245,6 +245,10 @@ final class SymbolLocationLayerRenderer implements LocationLayerRenderer {
|
||||
}
|
||||
|
||||
private void setLayerVisibility(@NonNull String layerId, boolean visible) {
|
||||
if (!style.isFullyLoaded()) {
|
||||
return;
|
||||
}
|
||||
|
||||
Layer layer = style.getLayer(layerId);
|
||||
if (layer != null) {
|
||||
String targetVisibility = visible ? VISIBLE : NONE;
|
||||
|
||||
Reference in New Issue
Block a user