-
-
Notifications
You must be signed in to change notification settings - Fork 109
Closed
Labels
Description
Steps to Trigger Behavior
- On Android, add a VectorSource and provide an onPress prop like so
<MapLibreGL.VectorSource onPress={(event) => console.log(event.features)}>
- 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-nativeVersion: 9.0.1react-nativeVersion: 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.
Reactions are currently unavailable