zoom can actually be fractional nowadays

This commit is contained in:
Hannes
2020-09-25 22:06:20 +02:00
committed by GitHub
parent 705e328fa0
commit 47ae47d123

View File

@@ -13,7 +13,7 @@ if (window.location.hash !== '') {
const hash = window.location.hash.replace('#map=', '');
const parts = hash.split('/');
if (parts.length === 4) {
zoom = parseInt(parts[0], 10);
zoom = parseFloat(parts[0]);
center = [parseFloat(parts[1]), parseFloat(parts[2])];
rotation = parseFloat(parts[3]);
}