public static double pixelXToLongitudeWithScaleFactor ( double pixelX , double scaleFactor , int tileSize ) { long mapSize = getMapSizeWithScaleFactor ( scaleFactor , tileSize ) ; if ( pixelX < 0 || pixelX > mapSize ) { throw new IllegalArgumentException ( "invalid pixelX coordinate at scale " + scaleFactor + ": " + pixelX ) ; } return 360 * ( ( pixelX / mapSize ) - 0.5 ) ; }
Converts a pixel X coordinate at a certain scale to a longitude coordinate .