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

Map style dropdown open above #768

Open
devanshsaini opened this issue Mar 16, 2023 · 1 comment
Open

Map style dropdown open above #768

devanshsaini opened this issue Mar 16, 2023 · 1 comment
Assignees
Labels
triage me I really want to be triaged. type: feature request ‘Nice-to-have’ improvement, new feature or different behavior or design.

Comments

@devanshsaini
Copy link

Thanks for stopping by to let us know something could be better!


PLEASE READ

If you have a support contract with Google, please create an issue in the support console. This will ensure a timely response.

Discover additional support services for the Google Maps Platform, including developer communities, technical guidance, and expert support at the Google Maps Platform support resources page.

If your bug or feature request is not related to this particular library, please visit the Google Maps Platform issue trackers.

Check for answers on StackOverflow with the google-maps tag.


Is your feature request related to a problem? Please describe.
When the mapTypeControlOptions property style is passed with the value google.maps.MapTypeControlStyle.DROPDOWN_MENU, the map style dropdown opens downwards and makes it useless to work with. Sure you can change the position property but if you position it in the bottom there is no use of having the values google.maps.ControlPosition.BOTTOM_CENTER or other BOTTOM values.
Here is an example of what happens: https://jsfiddle.net/m69c2xzo/18/

Describe the solution you'd like
I think a fair solution would be changing the dropdown list position according to where the dropdown is used.

Describe alternatives you've considered
I tried changing the style of the dropdown using the class name of the parent element since the ul element did not have a class name but that seemed like going overboard.

Additional context
Here is an example of what happens: https://jsfiddle.net/m69c2xzo/18/

@devanshsaini devanshsaini added triage me I really want to be triaged. type: feature request ‘Nice-to-have’ improvement, new feature or different behavior or design. labels Mar 16, 2023
@wangela
Copy link
Member

wangela commented Mar 16, 2023

If you would like to upvote the priority of this issue, please comment below or react with 👍 so we can see what is popular when we triage.

@devanshsaini Thank you for opening this issue. 🙏
Please check out these other resources that might help you get to a resolution in the meantime:

This is an automated message, feel free to ignore.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
triage me I really want to be triaged. type: feature request ‘Nice-to-have’ improvement, new feature or different behavior or design.
Projects
None yet
Development

No branches or pull requests

2 participants