nitaliano / react-native-mapbox-gl

A Mapbox GL react native module for creating custom maps
Other
2.16k stars 696 forks source link

Map loading too much time. #1710

Open udaysagartammina opened 3 years ago

udaysagartammina commented 3 years ago

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 }} /> </MapboxGL.MarkerView> ) }

Thanks in advance.

ppv94 commented 3 years ago

Same issue map takes too long to render when we try to show a huge number of markers or images.

kobagapu commented 3 years ago

same issue here

development0264 commented 1 year ago

Any solution?