Open kfarr opened 3 years ago
Cross posted to stack overflow: https://stackoverflow.com/questions/65352749/mapbox-component-for-a-frame-displays-different-scale-for-desktop-vs-mobile
hmm could be related to the devicePixelRatio setting? have not found anything related though.
i have tested also your example and it works with Mozilla Firefox Mobile Browser but not with Google Chrome....
Thanks Mattrei. Looking at this issue again I see that the scale is not different in the mapbox satellite tiles, instead it is positioned incorrectly mostly on the z axis, slightly on the x axis
Site: https://17thbikelane.glitch.me
Issue: When loading on desktop I see "correct" (expected) alignment of the mapbox plane with the rest of the 3d scene (Picture 1). However in mobile on a Pixel 3a the mapbox plane is incorrectly aligned (Picture 2) and appears to be smaller than in the deskop scene.
Snippet of code used to define mapbox component:
(Full code of scene here: https://glitch.com/edit/#!/17thbikelane?path=index.html)
Picture 1 - Desktop - Correct:
Picture 2 - Mobile - Incorrect: