Skip to content

Commit

Permalink
[sdk-base] add default parameters to coordinate conversion functions
Browse files Browse the repository at this point in the history
  • Loading branch information
tobrun committed Jul 12, 2021
1 parent 17cfd81 commit b4d7bf2
Showing 1 changed file with 9 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,9 @@ interface MapCameraManagerDelegate {
*/
fun cameraForCoordinateBounds(
bounds: CoordinateBounds,
padding: EdgeInsets,
bearing: Double?,
pitch: Double?
padding: EdgeInsets = EdgeInsets(0.0, 0.0,0.0, 0.0),
bearing: Double? = null,
pitch: Double? = null
): CameraOptions

/**
Expand All @@ -45,9 +45,9 @@ interface MapCameraManagerDelegate {
*/
fun cameraForCoordinates(
coordinates: List<Point>,
padding: EdgeInsets,
bearing: Double?,
pitch: Double?
padding: EdgeInsets = EdgeInsets(0.0, 0.0,0.0, 0.0),
bearing: Double? = null,
pitch: Double? = null
): CameraOptions

/**
Expand Down Expand Up @@ -83,9 +83,9 @@ interface MapCameraManagerDelegate {
*/
fun cameraForGeometry(
geometry: Geometry,
padding: EdgeInsets,
bearing: Double?,
pitch: Double?
padding: EdgeInsets = EdgeInsets(0.0, 0.0, 0.0, 0.0),
bearing: Double? = null,
pitch: Double? = null
): CameraOptions

/**
Expand Down

0 comments on commit b4d7bf2

Please sign in to comment.