-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Always zoom by the center of screen, wherever the point I clicked #4151
Comments
I was able to make it partially work: but there are some edge cases as rotate that aren't working as expected and will be more work than I initially anticipated. I'm thinking about picking this up as part of #3276. |
ok, Thank you very much. |
I tested this again using the latest in the |
@bleege this is about altering the focal point of the a gesture. In current implementation we take x,y from the motion event and only support a limited API on MyLocationView for tracking modes: if (mMapboxMap.getTrackingSettings().isLocationTrackingDisabled()) {
// Zoom in on gesture
zoom(true, e.getX(), e.getY());
} else {
// Zoom in on user location view
zoom(true, mMyLocationView.getCenterX(), mMyLocationView.getCenterY());
} Instead of using user location, we should use a user configurable focal point. I'm going to add more information in the related feature ticket. Going to close this in favour of #4924. |
Always zoom by the center of screen, wherever the point I clicked
Like below, The map is zoomed always from the middle of the map, no matter where I clicked on the map.
The text was updated successfully, but these errors were encountered: