Closed jackkemmish closed 1 year ago
@jackkemmish thanks for reaching out.
The easiest would be if you have a repro link with a simplified example, say at https://codepen.io/. This could be many things and it's difficult to say without looking more closely.
Describe the bug I am using the
pointOfView()
function to rotate the globe on click which works as expected. The issue lies when clicking on a few different pins, with a slight delay before clicking on another pin, the globe spins out of control then goes to the selected pin.To Reproduce Steps to reproduce the behavior:
world.pointOfView({ lat: d.lat, lng: d.lng, altitude: 1.4 }, 1000)
which will rotate the globe to the clicked pin.Expected behavior I'd assume the globe would just rotate naturally - but I do think there might be a potential build up as I have tried without a duration value and it just jumps, there's no uncontrolable rotation, however for the smooth effect I need the duration.
Screenshots Below are some screenshots of the lat/lng I am logging to the console. The first 2 are as expected, then the 3rd one is much greater which results in the spinning before reaching the target pin.
Any help would be appreciated on this one!
Thanks, Jack