Comments (9)
I noticed that it happens if "coordinates" prop array length less than 2
from maps.
I noticed that it happens if "coordinates" prop array length less than 2
You are right, there no crash if I render ShapeSource only if coordinates length > 1
from maps.
Thanks for the report, I wasn't able to reproduce the issue in our env.
What is your RN version?
from maps.
Thanks for response.
What is your RN version?
0.73.4
Android 13
from maps.
@stalteri I see our app uses 0.73.4 as well. Can you try to reproduce in our example app, or a new app created with npx react-native init?
from maps.
@stalteri I see our app uses 0.73.4 as well. Can you try to reproduce in our example app, or a new app created with npx react-native init?
Ok, I'll try to reproduce asap.
from maps.
@stalteri I see our app uses 0.73.4 as well. Can you try to reproduce in our example app, or a new app created with npx react-native init?
Screen_Recording_20240221_105904_RNMapboxGLExample.mp4
P.S. I forget to add a "draggable" prop to PointAnnotation in the component to reproduce (alredy edited).
from maps.
I crashed too when I used ShapeSource with prop shape type 'LineString'. RN 0.73.5, "@rnmapbox/maps": "^10.1.18" and "@rnmapbox/maps": "^10.1.19"
<MapboxGL.MapView
ref={refMap}
style={{flex: 1, width: '100%'}}
styleURL={MapboxGL.StyleURL.Street}>
<MapboxGL.ShapeSource
id="lineSource"
buffer={32}
shape={{
type: 'LineString',
coordinates: locations,
}}>
<MapboxGL.LineLayer
id="lineLayer"
sourceID="lineSource"
style={{lineColor: 'blue', lineWidth: 3}}
/>
</MapboxGL.ShapeSource>
<MapboxGL.UserLocation
visible={true}
animated={true}
androidRenderMode="gps"
/>
<MapboxGL.Camera
ref={cameraRef}
allowUpdates={true}
followUserLocation={true}
animationMode="moveTo"
animationDuration={200}
followZoomLevel={16}
defaultSettings={{
zoomLevel: 16,
}}
/>
</MapboxGL.MapView>
Also I created a new empty project on RN and installed only MapBox package. It isn't work too
from maps.
Just had the same issue with version 10.1.21 and the reason is exact the same as described above (only one Position in ShapeSource's coordinates).
from maps.
Related Issues (20)
- [Bug]: Sibling MarkerViews not observing zIndex style property
- When we give custom style url it gives blank on borders of that url any custom url it give blank only
- New project will not build with $RNMapboxMapsVersion = '=11.0.0' HOT 3
- iOS build breaks when running on RN 0.74.0 with new architecture HOT 5
- Android build throws authentication error on Maven download HOT 1
- Can't build on Android with React Native 0.74 HOT 4
- [Bug]: App crash on calling ShapeSource getClusterLeaves HOT 1
- [Bug]: Unable to submit to review on mapbox 10 with recent apple privacy changes HOT 1
- [Bug]: Map touches are delayed HOT 1
- [Bug]: React Native Heatmaps Not Working and Causes Crash
- [Bug]: Execution failed for task ':rnmapbox_maps:compileDebugKotlin' HOT 2
- Zoom level not applied correctly when switching from setting camera with `centerCoordinate` to `bounds` HOT 1
- [Bug]: Not able to Render Vectors with customized css- heavy size data (more than 10000 objects) HOT 3
- [Bug]: Navigating away from Map causes unhandled promise rejection for "setHandledMapChangedEvents"
- I Have Problem with Android Unsupported top level event type "topRct.mapbox.map.change" dispatched HOT 4
- [Bug]: downloaded Satellite map is displayed blur/pixalated in offline for some specific devices. HOT 1
- [Bug]: isGestureActive is always false on android devices HOT 2
- [Bug]: breaking change miss some info HOT 1
- [Bug]: Changing map style when using a raster layer causes error
- [Bug]: MarkerView coordinate on iOS is not animating
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from maps.