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

Extra control placement 3039 #13104

Merged

Conversation

Ethan-Guttman
Copy link
Contributor

This closes the good first issue #3039 (Allow controls to be placed at top-center, bottom-center, left-center, and right-center)

example pictures showcasing all four new positions:
image
image

Multiple ctrls will have margins between themselves like the already existing positions. However, depending on their widths in the top and bottom center they can look weird (smaller elements floating left).

I ordered the positions code in the css and map.js files by going from top-left to center-left clockwise listing each position too.

@Ethan-Guttman Ethan-Guttman requested a review from a team as a code owner March 1, 2024 22:17
@CLAassistant
Copy link

CLAassistant commented Mar 1, 2024

CLA assistant check
All committers have signed the CLA.

@mourner
Copy link
Member

mourner commented Apr 10, 2024

Sorry for the late response — this PR is on our mind and we'll look at it closer after we're done with the current v3.3 release. 🙏

@Ethan-Guttman
Copy link
Contributor Author

No problem, thanks for the update!

src/ui/map.js Outdated Show resolved Hide resolved
@rizvanovic
Copy link

This would be sick to get out

@JabSYsEmb
Copy link

It seems that no changes since last comment by @Ethan-Guttman.
I can take over the issue if you're tight on time... let me know

@Ethan-Guttman
Copy link
Contributor Author

It seems that no changes since last comment by @Ethan-Guttman. I can take over the issue if you're tight on time... let me know

I was waiting for a contact from the Mapbox team before updating again (since they said they would look at it closer later). I'll make the changes myself

@stepankuzmin
Copy link
Contributor

Hey @Ethan-Guttman,

Thanks for the contribution, and I'm sorry for the delay. Is there a chance you could rebase your changes on top of the latest main? Overall, this looks good to me, so resolving the conflicts seems to be the last thing we need to do before landing this.

@Ethan-Guttman
Copy link
Contributor Author

@stepankuzmin
I'll try to rebase it by end of day today. Thanks for the go ahead!

@Ethan-Guttman
Copy link
Contributor Author

I'm at a bit of a loss here. This is my first ticket and I have clicked the link to sign the CLA multiple times. It might just not be reflected here as it does sometimes indicate that I have signed it when I click the link. Aside from that if there is something genuinely wrong with the mac safari version I can't test it myself (having no apple devices). Those are the only failing checks

@stepankuzmin
Copy link
Contributor

Hey @Ethan-Guttman,

The rebase seems wrong because your changes were made before we transitioned to TypeScript, and now your PR has 2k files changed. It'd be easier for maintainers to update your PR directly. Could you please make sure that you've enabled edits and access to secrets by maintainers on that PR?

@Ethan-Guttman
Copy link
Contributor Author

@stepankuzmin
image
Thank you for the help and let me know if anything else is needed

Co-authored-by: Stepan Kuzmin <stepan.kuzmin@mapbox.com>
@stepankuzmin
Copy link
Contributor

Thanks for the contribution, @Ethan-Guttman, merging 👍

@stepankuzmin stepankuzmin merged commit 7f10517 into mapbox:main Sep 18, 2024
26 checks passed
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

Successfully merging this pull request may close these issues.

7 participants