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
Copy file name to clipboardexpand all lines: js/src/map.js
+29-33
Original file line number
Diff line number
Diff line change
@@ -21,36 +21,51 @@ var _MAP_markerStore = [];
21
21
var_MAP_map;
22
22
23
23
var_MAP_tiles={
24
-
"Normal": L.tileLayer("images/tiles/normal/minimap_sea_{y}_{x}.png",{maxNativeZoom: 0}),//Originally had the "tileSize" attribute set. Removing it allows for the "zoomed out" look
"Normal": L.tileLayer("images/tiles/normal/minimap_sea_{y}_{x}.png",{minZoom: -2,maxZoom: 0,maxNativeZoom: 0,minNativeZoom: 0,tileSize: 1024}),//Originally had the "tileSize" attribute set. Removing it allows for the "zoomed out" look
Copy file name to clipboardexpand all lines: js/src/utils.js
+38-16
Original file line number
Diff line number
Diff line change
@@ -19,39 +19,61 @@
19
19
functionisNumeric(n){
20
20
return!isNaN(parseFloat(n))&&isFinite(n)
21
21
}
22
+
functionnormalize(value,min,max){
23
+
returnMath.abs((value-min)/(max-min));
24
+
}
25
+
26
+
vargame_1_x=327.86;
27
+
vargame_1_y=1660.16;
28
+
29
+
vargame_2_x=-3778.16;
30
+
vargame_2_y=-4549.6;
22
31
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
32
25
-
// Gta 5's min max bounds
26
33
vargame_min_x=-4000.00;
27
34
vargame_max_x=6000.00;
28
-
vargame_min_y=8000;
29
-
vargame_max_y=-4000;
30
-
31
-
// Map's min max bounds based on Leaflet's shitty system
35
+
vargame_min_y=8000.00;
36
+
vargame_max_y=-4000.00;
32
37
varmap_min_x=0;
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