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

How to center camera on user location? #33

Open
AnEpicName opened this issue Jan 11, 2023 · 11 comments
Open

How to center camera on user location? #33

AnEpicName opened this issue Jan 11, 2023 · 11 comments
Assignees
Labels
enhancement New feature or request

Comments

@AnEpicName
Copy link

I'm trying to get my location from the map to avoid using external libraries like geolocator, but I can't find any option nor listener for the user location.

At the start of my view I want to center the camera at the current user location. Is there any way to do that in the current version of the plugin?

@kamami
Copy link

kamami commented Jan 11, 2023

Have a look at this example: https://gist.github.com/hkben/844d46a829f667e91fa6e6078e8b019c
Maybe it is helpful

@AnEpicName
Copy link
Author

Thanks! This is exactly what I was looking for!

@geisterfurz007
Copy link

geisterfurz007 commented Jan 12, 2023

I'd argue that there is a case for this being directly supported by this library since both the Android SDK and the iOS SDK support following the puck out of the box: Android Docs | iOS Docs

@kamami
Copy link

kamami commented Jan 12, 2023

But viewport is not supported by the Flutter SDK yet.

@geisterfurz007
Copy link

@kamami Yeah, that's what I mean; I think this issue should remain open until this is supported in the Flutter SDK.

@serraojoao
Copy link

@kamami you refer to this package support for viewport or flutter framework itself?

This would be a good improvement as when using the timer approach to center the location we notice the map "jumping" every second instead of the smooth navigation when using mapbox in a native app.

@yunikkk yunikkk self-assigned this Feb 22, 2023
@yunikkk yunikkk added the enhancement New feature or request label Feb 22, 2023
@yunikkk
Copy link
Collaborator

yunikkk commented Feb 22, 2023

@geisterfurz007 @kamami @serraojoao reopening to track when viewport will be implemented.
There're no estimations when it'll become available yet, I'll keep you all updated.

@basvdijk
Copy link

@yunikkk I understand you can't give an estimate. But is there a ballpark figure you can say like if it takes some months, more than half a year, a year? This would really help for my project planning.

@yunikkk
Copy link
Collaborator

yunikkk commented Apr 22, 2024

@yunikkk I understand you can't give an estimate. But is there a ballpark figure you can say like if it takes some months, more than half a year, a year? This would really help for my project planning.

@evil159 or @baleboy - do you folks know if the viewport API is planned anytime soon?

@baleboy
Copy link

baleboy commented Apr 22, 2024

Unfortunately there is no committed timeline at the moment.

@basvdijk
Copy link

@baleboy thanks for your update. Is there perhaps a public roadmap of this package?

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

No branches or pull requests

7 participants