Skip to content

[Android] Inconsistent layer property value type for visibility #3921

@CatchABus

Description

@CatchABus

MapLibre Android Version

11.6.2

Android SDK Version

15

Device

Pixel 4

What happened?

In general, android uses LayerPropertyValue and PaintPropertyValue to wrap properties and get/set values.
I noticed an incosistency with visibility in the case of which the getter uses a paint property wrapper while the setter makes use of the layout one.

Steps to reproduce

See https://github.com/maplibre/maplibre-native/blob/main/platform/android/MapLibreAndroid/src/main/java/org/maplibre/android/style/layers/Layer.java#L77
https://github.com/maplibre/maplibre-native/blob/main/platform/android/MapLibreAndroid/src/main/java/org/maplibre/android/style/layers/PropertyFactory.java#L25

Renderer

No response

Relevant log output

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions