-
-
Notifications
You must be signed in to change notification settings - Fork 737
YiR: Geo slide #6014
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
base: yir-re-design
Are you sure you want to change the base?
YiR: Geo slide #6014
Conversation
map.moveCamera(CameraUpdateFactory.newLatLngZoom(LatLng(latitude, longitude), zoom), object : MapLibreMap.CancelableCallback { | ||
override fun onCancel() { } | ||
override fun onFinish() { } | ||
}) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This can be simplified: map.moveCamera(CameraUpdateFactory.newLatLngZoom(LatLng(latitude, longitude), zoom))
private fun geoWithArticlesScreen(vararg params: Int): YearInReviewScreenData.GeoScreen { | ||
// TODO: yir112 | ||
private fun geoWithArticlesScreen(): YearInReviewScreenData.GeoScreen? { | ||
if (yearInReviewModel.largestClusterCountryName.isEmpty() || yearInReviewModel.largestClusterArticles.size < 2) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you add 2
to YearInReviewViewModel
as a constant value like: MIN_CLUSTER_ARTICLE = 2
var largestClusterLongitude = 0.0 | ||
var largestClusterCountryName = "" | ||
val largestClusterArticles = mutableListOf<String>() | ||
if (pagesWithCoordinates.size > 2) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can these 2
be replaced by the same constant value?
https://phabricator.wikimedia.org/T405427