react-native-mapbox-gl
react-native-mapbox-gl copied to clipboard
Map loading too much time.
React Native version : 0.63.4 "@react-native-mapbox-gl/maps": "^8.1.0",
I was rendering 5000 images in mapview, maps loading too much long time to load. It takes to load 15 - 20 minutes.
This is my code:
this.state.images.map((item, index) => {
return (
<MapboxGL.MarkerView
key={${index}-PointAnnotation
}
id={${index}-PointAnnotation
}
coordinate={item.coordinates}
>
<View
style={{
width: 45,
height: 45,
alignItems: 'center',
justifyContent: 'center',
overflow: 'hidden',
}}
>
<TouchableOpacity onPress={() => this.navigateToDetailScreen(item)}>
<Image
source={{ uri: item.icon }}
resizeMode={'contain'}
style={{ height: 30, width: 30 }}
/>
</TouchableOpacity>
</View>
</MapboxGL.MarkerView>
)
}
Thanks in advance.
Same issue map takes too long to render when we try to show a huge number of markers or images.
same issue here
Any solution?