maplibre-react-native icon indicating copy to clipboard operation
maplibre-react-native copied to clipboard

PointAnnotation selection and deselection make all map components skip one tap

Open Jakub-Plan-d-k opened this issue 3 weeks ago • 2 comments

When I tap on PointAnnotation it correctly reacts to a tap. However, the next tap (but only tap - pinch, for example, works) is not producing any events on any map components (MapView, ShapeSource). The next-next tap works as expected. Waiting does not help. Zooming in/out does not help.

screen recording from my physical device

Steps to reproduce:

  • run the below minimal example
  • tap on map
  • observe event logged in the console
  • tap on the annotation
  • tap on map
  • observe event NOT logged in the console
  • tap on map
  • observe event logged in the console

Minimal reproduction setup:

import { MapView, PointAnnotation } from "@maplibre/maplibre-react-native";
import { Text, View, ToastAndroid } from "react-native";

export function BugReport() {
  return (
    <MapView
            style={{ flex: 1 }}
            onPress={e => {
                ToastAndroid.show("tap", ToastAndroid.SHORT);
                console.log(e)
            }}
        >
            <PointAnnotation
                id={"test"}
                anchor={{ x: 0.5, y: 0 }}
                key={"test"}
                coordinate={[0,0]}>
                <Text>HELLOOOOOO</Text>
            </PointAnnotation >
        </MapView>
  );
}

@maplibre/maplibre-react-native Version

11.0.0-alpha.14

Which platforms does this occur on?

Android Device

Which frameworks does this occur on?

React Native

Which architectures does this occur on?

New Architecture

Environment

expo-env-info 2.0.7 environment info:
    System:
      OS: Windows 10 10.0.19045
    Binaries:
      Node: 20.19.4 - C:\Program Files\nodejs\node.EXE
      npm: 11.5.2 - C:\Program Files\nodejs\npm.CMD
    IDEs:
      Android Studio: AI-223.8836.35.2231.10671973
    npmPackages:
      react: 19.1.1 => 19.1.1
      react-native: ^0.82.1 => 0.82.1
    Expo Workflow: bare

Jakub-Plan-d-k avatar Nov 20 '25 11:11 Jakub-Plan-d-k

Heads up for anyone after me, above comment is a virus or malware Edit: after my report, the comment was removed by github aparently

Jakub-Plan-d-k avatar Nov 20 '25 12:11 Jakub-Plan-d-k