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

fix: move marker image loading earlier in process #7

Merged
merged 1 commit into from
Feb 26, 2021

Conversation

madwort
Copy link
Contributor

@madwort madwort commented Feb 26, 2021

  • reproducible issues were observed where marker icons don't display at initial zoom, but visible at other zoom levels
    • reproducible on Android browsers
    • also in Firefox desktop with connection throttling set to "Regular 3G"
  • caused by marker image not loaded in time
  • in theory we can use 'styleimagemissing' to handle this, but this does not work with image files loaded via callback, only for inline generated images

* reproducible issues were observed where marker icons don't display at initial zoom, but visible at other zoom levels
  * reproducible on Android browsers
  * also in Firefox desktop with connection throttling set to "Regular 3G"
* caused by marker image not loaded in time
* in theory we can use ['styleimagemissing'](mapbox/mapbox-gl-js#7987) to handle this, but this does not work with image files loaded via callback, only for inline generated images
@madwort
Copy link
Contributor Author

madwort commented Feb 26, 2021

@trovster any objections to this? I might also add a <link rel="preload"> to the page header to help a bit more

@trovster
Copy link
Collaborator

@trovster any objections to this? I might also add a <link rel="preload"> to the page header to help a bit more

Sounds find to me.

@madwort madwort merged commit 7d8744a into develop Feb 26, 2021
@madwort madwort deleted the fix-android-map-loading branch February 26, 2021 13:36
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

Successfully merging this pull request may close these issues.

2 participants