You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Aug 8, 2023. It is now read-only.
Documentation for mbgl::View::getPixelRatio() says:
// Called directly after initialization. Must always return the same value, i.e. it may
// not change over time.
This is OK as long as the application window remains on a fixed device pixel ratio during its runtime. However, in my environment I have an external monitor connected to my MacBook. When moving the application window between the Retina display and the external monitor, the pixel ratio could also be updated.
@brunoabinader Is it possible to detect the change in pixel ratio in platform specific bindibg? Calling setStyleURL with the currently loaded style upon change should fix it.
@mb12 The issue isn't about detecting the pixel ratio change event itself, but about everything that has to happen when we're changing the pixel ratio (e.g. recreate textures, scale + reload the spritesheet + atlas.
Documentation for
mbgl::View::getPixelRatio()
says:This is OK as long as the application window remains on a fixed device pixel ratio during its runtime. However, in my environment I have an external monitor connected to my MacBook. When moving the application window between the Retina display and the external monitor, the pixel ratio could also be updated.
@kkaefer @ansis is this something feasible for us to do?
The text was updated successfully, but these errors were encountered: