You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
refactor: update map utils for better accuracy with new framework
God. I. Hate. This.
There's no guarantee that the values entered will work for everyone.
There's no guarantee they will be accurate.
And I cannot tell you for the life of me where the values have come from.
Copy file name to clipboardexpand all lines: js/src/utils.js
+14-43
Original file line number
Diff line number
Diff line change
@@ -19,17 +19,20 @@
19
19
functionisNumeric(n){
20
20
return!isNaN(parseFloat(n))&&isFinite(n)
21
21
}
22
-
vargame_min_x=-4000;
23
-
vargame_max_x=6000;
24
22
23
+
//These settings seem to work for tilesize 256 (the default). The resources I could find don't help here.. So, the values below are botched. And _seem_ to work alright.
24
+
25
+
// Gta 5's min max bounds
26
+
vargame_min_x=-4000.00;
27
+
vargame_max_x=6000.00;
25
28
vargame_min_y=8000;
26
29
vargame_max_y=-4000;
27
30
31
+
// Map's min max bounds based on Leaflet's shitty system
28
32
varmap_min_x=0;
29
-
varmap_max_x=2048*2+1024;
30
-
31
-
varmap_min_y=0;
32
-
varmap_max_y=2048*3-256;
33
+
varmap_max_x=585;// Don't fucking ask.
34
+
varmap_min_y=17;// IDFK why this needs to be 17 but, it seems to be accurate
0 commit comments