/** * Determines the ground resolution (in meters per pixel) at a specified * latitude and level of detail. * * @param latitude latitude * @param zoomLevel zoomlevel * @return ground resolution */ public static double getGroundResolutionInMeters(double latitude, int zoomLevel) { return Math.cos(latitude * Math.PI / 180) * 2 * Math.PI * dEarthRadius / getMapSizeInPixels( zoomLevel); }