Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Android: Callout not clearing when Point Annotation is removed #3536

Closed
himu243 opened this issue Jun 19, 2024 · 1 comment
Closed

Android: Callout not clearing when Point Annotation is removed #3536

himu243 opened this issue Jun 19, 2024 · 1 comment
Labels
bug 🪲 Something isn't working reopen-on-code-fixed

Comments

@himu243
Copy link

himu243 commented Jun 19, 2024

Mapbox Implementation

Mapbox

Mapbox Version

10.7.0

React Native Version

0.70.6

Platform

Android

@rnmapbox/maps version

10.1.25

Standalone component to reproduce

if (maybeWaypoint) {
return (
<PointAnnotation
key={'waypoint'}
id={'waypoint'}
coordinate={[
maybeWaypoint.telemetry.coordinate.longitude,
maybeWaypoint.telemetry.coordinate.latitude,
]}
anchor={{ x: 0.5, y: 0.5 }}
style={styles.marker}
>
<Callout
title="Waypoint"
style={{ backgroundColor: 'white', width: 140, borderRadius: 8 }}
>
<View style={{ flex: 1, padding: 5, alignItems: 'center' }}>
<Text
style={{
textAlign: 'center',
fontFamily: FONTS.AVENIR.BLACK,
color: COLORS.TITLE_BLACK,
fontSize: 14,
}}
>
{'Way Point'}

<Text
style={{
textAlign: 'center',
fontFamily: FONTS.AVENIR.MEDIUM,
color: COLORS.TITLE_SECTION,
fontSize: 12,
}}
>
{maybeWaypointDescription}




)
}

Observed behavior and steps to reproduce

If my callout is open for Point annotation and my annotation is removed from the the Map, the Callout stays and doesn't get clear.

Expected behavior

The Callout should clear when annotation is removed from Map

Notes / preliminary analysis

No response

Additional links and references

No response

@himu243 himu243 added the bug 🪲 Something isn't working label Jun 19, 2024
Copy link

No code example found in issue body - More info

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug 🪲 Something isn't working reopen-on-code-fixed
Projects
None yet
Development

No branches or pull requests

1 participant