/// <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="scaleFactor">
 ///            the scale factor for the conversion. </param>
 /// <returns> pixels that represent the meters at the given zoom-level and latitude. </returns>
 public static double MetersToPixelsWithScaleFactor(float meters, double latitude, double scaleFactor, int tileSize)
 {
     return(meters / MercatorProjection.CalculateGroundResolutionWithScaleFactor(latitude, scaleFactor, tileSize));
 }