Skip to content
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

Map loading too much time. #1710

Open
udaysagartammina opened this issue Sep 28, 2021 · 3 comments
Open

Map loading too much time. #1710

udaysagartammina opened this issue Sep 28, 2021 · 3 comments

Comments

@udaysagartammina
Copy link

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
Copy link

ppv94 commented Sep 29, 2021

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

@kobagapu
Copy link

same issue here

@development0264
Copy link

Any solution?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants