After two days I found the solution. I was using elliptical mercator and OSM2World uses Spherical Mercator. I see that there’s a latToYElliptical method in the Mercator class in OSM2World. However, there is not a lonToXElliptical method, so I guess I will have to code it myself. I will also have to scale the values bewteen 0 and 1. Any help is appreciated.