Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow getCameraOptions with no padding parameter #21

Merged
merged 1 commit into from
Jan 22, 2021

Conversation

kiryldz
Copy link
Contributor

@kiryldz kiryldz commented Jan 22, 2021

<changelog>Allow getCameraOptions with no padding parameter</changelog>

@kiryldz kiryldz requested review from tobrun and a team January 22, 2021 12:13
@kiryldz kiryldz self-assigned this Jan 22, 2021
@@ -18,7 +18,7 @@ interface MapTransformDelegate {
*
* @param edgeInsets The optional padding
*/
fun getCameraOptions(edgeInsets: EdgeInsets?): CameraOptions
fun getCameraOptions(edgeInsets: EdgeInsets? = null): CameraOptions
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we also need to add the default value to the MapboxMap override funtion?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Kotlin does not allow doing that.
However I've checked it's handled OK like it's done now.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please update description to remove link to private repo.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants