We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 254674e commit fc5c0deCopy full SHA for fc5c0de
src/ui/map.js
@@ -1967,7 +1967,7 @@ class Map extends Camera {
1967
}
1968
1969
_resizeCanvas(width: number, height: number) {
1970
- const pixelRatio = window.devicePixelRatio || 1;
+ const pixelRatio = browser.devicePixelRatio || 1;
1971
1972
// Request the required canvas size taking the pixelratio into account.
1973
this._canvas.width = pixelRatio * width;
0 commit comments