OnDragg functionality added #7
Labels
No Label
bug
documentation
duplicate
enhancement
fixed in dev
good first issue
help wanted
invalid
question
wontfix
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: kscience/maps-kt#7
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "onDrag"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Now users will be able to customize the drag behavior of the map
@ -17,6 +17,7 @@ data class MapViewConfig(
val onClick: MapViewPoint.() -> Unit = {},
val onViewChange: MapViewPoint.() -> Unit = {},
val onSelect: (GmcBox) -> Unit = {},
val onDrag: (MapViewPoint, MapViewPoint) -> Boolean = { _, _ -> true },
It is not clear, how it works, needs to be documented
@ -0,0 +2,4 @@
import kotlin.math.PI
fun Double.toDegrees() = this * 180 / PI
This polutes the global name space. Sadly it is not acceptable for the library. Move to demo. In order to introduce something like this, we need to limit it to a scope, or introduce value classes for radians or degrees.
@ArystanK Please do not close pull requests, instead add commits to relevant branches and re-request code review. PRs are updated automatically from branches.
Pull request closed