shithub: map

Download patch

ref: cf8a6208b4418f811a94a6db8824a4d8bbd761d4
parent: ce8ab2d2e6b034cf42a7320c3a8545d941079862
author: sirjofri <sirjofri@sirjofri.de>
date: Fri Apr 4 15:47:59 EDT 2025

better panning when zoomed in

--- a/map.c
+++ b/map.c
@@ -118,8 +118,8 @@
 gettiledeg(void)
 {
 	double x = 360. / zoomsquared[currentloc.z];
-	if (x < 0.1)
-		x = 0.1;
+	if (x < 0.0001)
+		x = 0.0001;
 	return x;
 }
 
@@ -311,8 +311,8 @@
 	if (x) *x = deg * m;
 	if (y) {
 		v = 1. - fabs(gpsloc.lat) / 90.;
-		if (v < 0.1)
-			v = 0.1;
+		if (v < 0.00001)
+			v = 0.00001;
 		*y = deg * m * v;
 	}
 }
--