Skip to content

Map can't display negative x coordinates #3

@thiskal

Description

@thiskal

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';

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions