Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Map can't display negative x coordinates #3

Open
thiskal opened this issue Nov 18, 2019 · 0 comments
Open

Map can't display negative x coordinates #3

thiskal opened this issue Nov 18, 2019 · 0 comments

Comments

@thiskal
Copy link

thiskal commented Nov 18, 2019

using index.html i am unable to see the negative half of the map.
I was able to work around this issue by essentially shifting the map and adjusting the coordinates.

To do this, i adjusted three lines. adding a value of '128' to all of them.

offset new markers
position: new google.maps.LatLng(y / 512, (x / 512) + 128),

offset the starting position
center: new google.maps.LatLng(0, 128),,

offset the image to load
return 'overworld (dimension 0)/images/z' + z + '/' + ((coord.x-(128*z))) + ',' + coord.y + '.png';

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant