Improved www.ttss.krakow.pl
Jacek Kowalski
2020-06-09 a09b8a43f6444eea2506dc8b3d04b8f5ea80a4df
[map] Disallow non-integer zoom levels
1 files modified
2 ■■■■■ changed files
map.js 2 ●●●●● patch | view | raw | blame | history
map.js
@@ -1113,6 +1113,7 @@
                url: 'https://tiles.ttss.pl/x' + pixelRatio + '/{z}/{x}/{y}.png',
                maxZoom: 19,
                tilePixelRatio: pixelRatio,
                opaque: false,
            }),
        }),
        route_layer,
@@ -1132,6 +1133,7 @@
            center: ol.proj.fromLonLat([19.94, 50.06]),
            zoom: 14,
            maxZoom: 19,
            constrainResolution: true,
        }),
        controls: ol.control.defaults({
            attributionOptions: ({