We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
No link but this is the relevant code:
const flyToCenter = useCallback((lat: number, lng: number, zoomTo: number = 9) => { if (cameraRef.current) { cameraRef.current.setCamera({ stops: [ { centerCoordinate: [lng, lat], zoomLevel: zoomTo, heading: 0, animationMode: 'flyTo', animationDuration: 300, }, ], }); } }, [], );
The map camera should pan and zoom to the setCamera config params.
setCamera
On Android, neither panning or zooming happens.
Works as expected on iOS
The text was updated successfully, but these errors were encountered:
Found out if I change the code to a single stop, then it works for Android:
cameraRef.current.setCamera({ centerCoordinate: [lng, lat], zoomLevel: zoomTo, heading: 0, animationMode: 'flyTo', animationDuration: 300, });
Sorry, something went wrong.
Also there were quite some improvements with the latest v10 pre-releases. Please report if there are still problems.
No branches or pull requests
Steps to Trigger Behavior
Link to Minimal Reproducible Example
No link but this is the relevant code:
Expected Behavior
The map camera should pan and zoom to the
setCamera
config params.Actual Behavior
On Android, neither panning or zooming happens.
Version(s) affected
Additional context
Works as expected on iOS
The text was updated successfully, but these errors were encountered: