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 tiles on mobile loading slowly #148

Open
dnsos opened this issue May 20, 2020 · 3 comments
Open

Map tiles on mobile loading slowly #148

dnsos opened this issue May 20, 2020 · 3 comments
Assignees
Projects

Comments

@dnsos
Copy link
Collaborator

dnsos commented May 20, 2020

On mobile (in slow networks), the map tiles are sometimes not loaded when a user enters the application. The loading screen which should prevent this experience does not listen to the loading state of the tiles.

This could potentially be solved with the areTilesLoaded method (doc) that could be bound to the application state.

@dnsos dnsos added this to Backlog in Whats Next? May 20, 2020
@dnsos dnsos self-assigned this May 20, 2020
@ff6347
Copy link
Member

ff6347 commented May 20, 2020

But what should we do. I think we should try to decouple it totally from the tile loading.

@dnsos
Copy link
Collaborator Author

dnsos commented May 26, 2020

I've started working on a branch that would remove the loading overlay only after map + trees have rendered (only for mobile).

It does not fix the loading speed, but might improve the user experience: loading screen disappeared means everything has in fact loaded.

The approach (see here) feels hacky, but it seems to work. Feedback and thoughts appreciated!

@ff6347
Copy link
Member

ff6347 commented May 26, 2020

But doesn't that trap users in the loading screen until the map is done.
deck.gl works on Desktop also without the map tiles. So you can already interact with the map before the tiles are there.

On mobile this means the loading screen will take between 10 to 20 seconds?
People will bounce away a lot.

I think we should find a way to let the user interact with the application before the map is done. Move map tiles loading into the background and give the user the possibility to interact already.

Maybe (random thoughts):

logged in users:

  • send directly into the their profile.
  • zoom into their trees.
  • give them some stats about the state of their trees

new users:

  • do some animation with the content of the overlay
  • distract them from the fact that the application is not ready

map:

data fetching:

  • review data fetching in the whole application.

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

No branches or pull requests

2 participants