You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Aug 8, 2023. It is now read-only.
tldr we need to expose a user configurable focal point. A focal represents the x,y value on which a gesture works. In normal cases the x,y from the MotionEvent is used. We need to make this configurable
Currently we already expose an API that works similar to a focal point implementation. When you enable the tracking mode on MyLocationView you also change the focal point to follow that view. An example how that now looks:
// Single finger double tapif (mMapboxMap.getTrackingSettings().isLocationTrackingDisabled()) {
// Zoom in on gesturezoom(true, e.getX(), e.getY());
} else {
// Zoom in on user location view// getCenterX also takes in account padding + insetszoom(true, mMyLocationView.getCenterX(), mMyLocationView.getCenterY());
}
To be able to support all different use-cases users are requesting we need to expose an API as:
mapboxMap.getUiSettings().setFocalPoint(x,y);
People will mostly use this to center the focal point
A common use case would be to focus zooming on the selected marker. In fact, I suspect that would account for the majority of requests for this feature.
tldr we need to expose a user configurable focal point. A focal represents the x,y value on which a gesture works. In normal cases the x,y from the MotionEvent is used. We need to make this configurable
Currently we already expose an API that works similar to a focal point implementation. When you enable the tracking mode on MyLocationView you also change the focal point to follow that view. An example how that now looks:
To be able to support all different use-cases users are requesting we need to expose an API as:
People will mostly use this to center the focal point
It would be nice to be able to limit if-else in the gesture code above and use a factory pattern to provide an implementation instead.
The text was updated successfully, but these errors were encountered: