Skip to content
New issue

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

camera.move not always work #4

Open
Knight704 opened this issue Mar 2, 2023 · 2 comments
Open

camera.move not always work #4

Knight704 opened this issue Mar 2, 2023 · 2 comments

Comments

@Knight704
Copy link

package version: 5.1.2

Next call is not working (sometimes it works only first time):

map.camera.move(position: position)

Changing same line to this start to work, but this is not animated experience

map.camera.position = position
@maxal9999
Copy link

Hello! We have a demo with camera.move .
https://github.com/2gis/mobile-sdk-ios-demo/blob/master/app/Views/DemoPages/Camera/CameraDemoViewModel.swift
Can you check this?
And can you send a code example of how you start camera moving?

@Knight704
Copy link
Author

Okay, I figured out what was wrong, on the example we have a cancellable that every time reset itself and start animation again. That works fine actually. But when we do not care about cancellable and just try call camera.move look like that somehow internal state of camera got corrupted if we call it until camera is not ready. This should clearly be stated in docs I guess

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants