Skip to content

Commit 60c7659

Browse files
authored
Update Position.js (#37)
1 parent 0c94aff commit 60c7659

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

js/model/Position.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
export const MAP_HEIGHT_MAX_ZOOM_PX = 364544;
44
export const MAP_WIDTH_MAX_ZOOM_PX = 104448;
55
export const RS_TILE_WIDTH_PX = 32, RS_TILE_HEIGHT_PX = 32; // Width and height in px of an rs tile at max zoom level
6-
export const RS_OFFSET_X = 1024; // Amount to offset x coordinate to get correct value
6+
export const RS_OFFSET_X = 1024 - 64; // Amount to offset x coordinate to get correct value
77
export const RS_OFFSET_Y = 6208; // Amount to offset y coordinate to get correct value
88

99
export class Position {
@@ -66,4 +66,4 @@ export class Position {
6666
toString() {
6767
return `(${this.x}, ${this.y}, ${this.z})`;
6868
}
69-
};
69+
};

0 commit comments

Comments
 (0)