-
-
Notifications
You must be signed in to change notification settings - Fork 847
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]: Onpress only works if layers are nested like jsx components #3042
Comments
@BubbleTrouble14 pls do not use |
Okay, ill edit it to use a geoJson |
Also I am experiencing some bug after v10.0.13 no fill layers are showing anymore. Even the code above doesn't render anything. It works on ios but not on my androids. Not on the emulator or real device. Also tried the latest rc build no luck. So currenlty sticking with v10.0.13. |
RNMapboxMapsImpl = "mapbox" |
@BubbleTrouble14 pls correct coordinate in your example as right now the camera is different place than the polygons |
@BubbleTrouble14 I've released 10.0.15-rc.0 that should fix the layer not rendering issue on android. Pls confirm that. For the onPress only working for nested layers that's the way it works. We should document it, but I don't see it a huge deal for apps otherwise. maps/ios/RCTMGL-v10/RCTMGLMapView.swift Lines 736 to 748 in d793693
maps/ios/RCTMGL-v10/RCTMGLMapView.swift Line 758 in d793693
maps/ios/RCTMGL-v10/RCTMGLSource.swift Lines 14 to 22 in d793693
|
@mfazekas Ah makes sense, wasn't sure if it was intentional or not. Using queryRenderedFeaturesAtPoint allows me to do what I need. Thanks |
Mapbox Implementation
Mapbox
Mapbox Version
10.7.10
Platform
Android
@rnmapbox/maps
version10.0.13
Standalone component to reproduce
Observed behavior and steps to reproduce
No response
Expected behavior
No response
Notes / preliminary analysis
No response
Additional links and references
No response
The text was updated successfully, but these errors were encountered: