First step is to determine the base zoom level of all tracks for one resolution, for example 1920x1080.
Then you can adapt the zoom level to a differing resolution.
I think there is a mapping between different resolutions and zoom levels necessary.
The resolutions can determined with the following function.
First step is to determine the base zoom level of all tracks for one resolution, for example 1920x1080. Then you can adapt the zoom level to a differing resolution.
I think there is a mapping between different resolutions and zoom levels necessary.
The resolutions can determined with the following function.
http://wiki.selfhtml.org/wiki/JavaScript/Objekte/window/innerWidth
function Auswerten() { var w1 = window.innerWidth; var h1 = window.innerHeight; document.getElementById("innerX").innerHTML = w1; document.getElementById("innerY").innerHTML = h1;
}