function fromUserResolution(resolution, destProjection) {
  if (!userProjection) {
    return resolution;
  }
  const destMetersPerUnit = get(destProjection).getMetersPerUnit();
  const userMetersPerUnit = userProjection.getMetersPerUnit();
  return destMetersPerUnit && userMetersPerUnit
    ? (resolution * userMetersPerUnit) / destMetersPerUnit
    : resolution;
}
Return the resolution in user projection units per pixel. If no user projection
is set, or source or user projection are missing units, the original resolution
is returned.
@param {number} resolution Resolution in user projection units per pixel.
@param {ProjectionLike} destProjection The destination projection.
@return {number} Resolution in destination projection units per pixel.