-
Notifications
You must be signed in to change notification settings - Fork 52
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
Button for centering the map to our own geolocation #79
Comments
@dagatsoin @EddyVerbruggen @Anothar what's the difficulty we would have to implement this? |
Hi @cusspvz. Why not use your own button that you position on top of the map and use:
|
Hey @Nauzer, thanks for your reply. Because we cannot place elements over the mapview yet. |
Right.
|
@dagatsoin nice! Seems we got a path. Although the button placement and position should be optional, don't you agree? If I had to design an API I would do it like:
Note: Doesn't the mapbox gl native provides some sort of controls mechanisms already? |
That seems good, but I would prefer the option to specify the layout params for the button instead of restrictive ENUM values so: |
Nice come up @dagatsoin ! I prefer it as well, but how would you handle the non-specified ones? Should they be int or either |
What about passing an object The native method should also have a default place/dimension. So the passing value will just override the default position. About the implementation of the default position in the native method, I used to use |
This issue is a proposal for introducing a button that handles the map centering to the user's geolocation.
The text was updated successfully, but these errors were encountered: