mapbox / mapbox-unity-sdk

Mapbox Unity SDK - https://www.mapbox.com/unity/
Other
725 stars 210 forks source link

Zooming at a particular point on map (not the center of the map) #1862

Open andrewpstern opened 2 years ago

andrewpstern commented 2 years ago

Zooming currently occurs at the center of the map. Is there support for zooming at particular point on the map, i.e. where the user's pinch is located, like how doubleClickZoom works on the JS implemenation of Mapbox? https://docs.mapbox.com/mapbox-gl-js/example/toggle-interaction-handlers/

If this doesn't exist yet in the Unity infrastructure, any tips on how to implement this, and/or are there future plans for this feature?

thanks

brnkhy commented 2 years ago

@andrewpstern have you seen this; https://github.com/mapbox/mapbox-unity-sdk/pull/1684

It has been a long time but I think it should work with original v2.1.1.