/// <summary> /// Converts meters to pixels at latitude for zoom-level. /// </summary> /// <param name="meters"> /// the meters to convert </param> /// <param name="latitude"> /// the latitude for the conversion. </param> /// <param name="mapSize"> /// precomputed size of map. </param> /// <returns> pixels that represent the meters at the given zoom-level and latitude. </returns> public static double MetersToPixels(float meters, double latitude, long mapSize) { return(meters / MercatorProjection.CalculateGroundResolution(latitude, mapSize)); }