From a09b8a43f6444eea2506dc8b3d04b8f5ea80a4df Mon Sep 17 00:00:00 2001
From: Jacek Kowalski <Jacek@jacekk.info>
Date: Tue, 09 Jun 2020 21:39:50 +0000
Subject: [PATCH] [map] Disallow non-integer zoom levels

---
 map.js |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/map.js b/map.js
index 93fdf11..14cd19c 100644
--- a/map.js
+++ b/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: ({

--
Gitblit v1.9.1