X Tutup
Skip to content

MapLibreGL.VectorSource onPress returns no geometry on Android #538

@jimmyasyraf

Description

@jimmyasyraf

Steps to Trigger Behavior

  1. On Android, add a VectorSource and provide an onPress prop like so
<MapLibreGL.VectorSource onPress={(event) => console.log(event.features)}>
  1. Click on a feature and check the event returned

Expected Behavior

For each feature in event.features there should be geometry

Actual Behavior

For each feature in event.features it returns null for Android. In iOS it returns the geometry with no problem.

Environment

  • Platform: Android (iOS works fine)
  • OS version: Android 14
  • Device type: Pixel 3A
  • Emulator or Simulator: Yes and Physical device as well
  • Development OS: macOS Sonoma 14.5
  • @maplibre/maplibre-react-native Version: 9.0.1
  • react-native Version: 0.73

Additional context

The event for onPress for <MapLibreGL.ShapeSource> for Android is fine too, it returns the geometry

EDIT: I'm only referring to the geometry returned in the onPress event (for Android). Visually, the layer is displayed perfectly fine in the map.

Metadata

Metadata

Assignees

No one assigned

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      X Tutup