peterqliu / threebox

A three.js plugin for Mapbox GL JS, with support for basic animation and advanced 3D rendering.
MIT License
526 stars 320 forks source link

Orientation Change breaks map #43

Closed regularExpresso closed 5 years ago

regularExpresso commented 5 years ago

changing the device orientation breaks the scale relationship between the mapbox layer and the three.js overlay - any idea how to fix this?

regularExpresso commented 5 years ago

hello, has there been any update on this issue by chance? this is quite a game breaker for my project :/

peterqliu commented 5 years ago

Hi! I'm fixing this in the next release, but in the meantime you can do this https://stackoverflow.com/questions/20290402/three-js-resizing-canvas to address changes in viewport size

Karma-Studio commented 5 years ago

Thank you, this temporarily fixed it :)

peterqliu commented 5 years ago

solved in 0.3.0