LatLon2XY function

computes the coordinate transformation from lat/lon to map tile coordinates