react-native-mapbox-gl
react-native-mapbox-gl copied to clipboard
dynamically update features in featureCollection to show markers/pins on the map not working.
static pins ( features as array works ) in below code pin comes from state and it is updated from api call
styleURL={MapboxGL.StyleURL.Street}
ref={ref => (this.map = ref)}
zoomLevel={5}
heading={0}
userTrackingMode={MapboxGL.UserTrackingModes.NONE}
centerCoordinate={defaultLocation}
>
<MapboxGL.ShapeSource id="point1" shape={pins} clusterRadius={50} clusterMaxZoom={14}>
<MapboxGL.SymbolLayer id="callout" style={styles.mapIcon} minZoomLevel={1} />
</MapboxGL.ShapeSource>
</MapboxGL.MapView>
version : 6.0.2 other versions > 6.0.2 unable to render map.
@yqz0203 have you found out any soln for this ? or faced similar issue
I have the same issue.
MapBox version: 6.1.3 React-Native version: 0.55.3
@vivekparekh8 did you find your solution ?