function toUserResolution(resolution, sourceProjection) {
  if (!userProjection) {
    return resolution;
  }
  const sourceMetersPerUnit = get(sourceProjection).getMetersPerUnit();
  const userMetersPerUnit = userProjection.getMetersPerUnit();
  return sourceMetersPerUnit && userMetersPerUnit
    ? (resolution * sourceMetersPerUnit) / userMetersPerUnit
    : 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 input projection units per pixel.
@param {ProjectionLike} sourceProjection The input projection.
@return {number} Resolution in user projection units per pixel.