function fromLonLat(coordinate, projection) {
  disableCoordinateWarning();
  return transform(
    coordinate,
    'EPSG:4326',
    projection !== undefined ? projection : 'EPSG:3857',
  );
}
Transforms a coordinate from longitude/latitude to a different projection.
@param {import("./coordinate.js").Coordinate} coordinate Coordinate as longitude and latitude, i.e.
    an array with longitude as 1st and latitude as 2nd element.
@param {ProjectionLike} [projection] Target projection. The
    default is Web Mercator, i.e. 'EPSG:3857'.
@return {import("./coordinate.js").Coordinate} Coordinate projected to the target projection.
@api