Skip to content

tilerow = -Math.round((nw.y - Y0) / tilewidth) computes wrong value for what should result in tilerow=0 #21

@zigacernigoj

Description

@zigacernigoj

When computing tilerow number for the first row, the result of let tilerow = -Math.round((nw.y - Y0) / tilewidth); is 1 instead of 0 if using too "big" precision for latlng;

I fixed it with using Math.round(); instead.

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