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

[Bug]: MarkerView and iOS (Gestures won't work on iOS with 20 MarkerViews) #3734

Open
atif089 opened this issue Jan 3, 2025 · 2 comments
Open
Labels
bug 🪲 Something isn't working

Comments

@atif089
Copy link

atif089 commented Jan 3, 2025

Mapbox Implementation

Mapbox

Mapbox Version

11.4.1

React Native Version

0.76.5

Platform

iOS

@rnmapbox/maps version

10.1.33

Standalone component to reproduce

Observed behavior and steps to reproduce

I am running into this issue where I have a bunch of MarkerViews (roughly 20-30). As soon as I render these, I'm unable to pan or zoom the map anymore. It would work at some points, but mostly won't work on the map

I don't know if it is related to hit boxes or anything else, but if I zoom out to a different location where I don't have markers anymore, then it works.

Is there any way I can debug and publish more report on whats going on?

And it works perfectly fine on Android, but not on iOS

I can try to recreate this for the demo, but I fear it might not be reproducible.

image

react-native": "^0.76.5",
"expo": "~52.0.20",
"@rnmapbox/maps": "^10.1.33",

app.config

RNMapboxMapsVersion: "11.4.1"

Expected behavior

Panning and Zooming Gestures should work

Notes / preliminary analysis

  1. Works fine on Android but not on iOS
  2. If I render null inside MarkerView then it works fine
  3. Doesn't matter what is inside MarkerView (Text/View etc and not does its width/height)

Additional links and references

console.log(1);
@atif089 atif089 added the bug 🪲 Something isn't working label Jan 3, 2025
@atif089 atif089 changed the title [Bug]: MarkerView and iOS related struggle [Bug]: MarkerView and iOS (Gestures won't work on iOS with 20 MarkerViews) Jan 3, 2025
@github-actions github-actions bot closed this as completed Jan 3, 2025
@github-actions github-actions bot reopened this Jan 3, 2025
@atif089
Copy link
Author

atif089 commented Jan 3, 2025

Additional Info: It works fine when I have 1 MarkerViews and starts breaking with 10.

@atif089
Copy link
Author

atif089 commented Jan 3, 2025

Stumbled upon this, wondering if it has anything to do.

if (Platform.OS === 'ios' && !Mapbox.MapboxV10) {
return (
<PointAnnotation id={this._idForPointAnnotation()} {...this.props} />
);
}

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

No branches or pull requests

1 participant