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

maybe not a bug, but not a feature, how to move the map type selector, on iPhone it is behind the window #107

Open
sdetweil opened this issue Jan 3, 2025 · 2 comments

Comments

@sdetweil
Copy link

sdetweil commented Jan 3, 2025

I need to move the map type selector, which is top left. iPhone it is hard to operate

IMG_0224

maybe another doc thing

I can add/manipulate my own controls...

@sdetweil
Copy link
Author

sdetweil commented Jan 3, 2025

my map options

        const mapOptions =  {
            zoomControl: true,
            mapTypeControl: true,
            scaleControl: true,
            streetViewControl: true,
            rotateControl: true,
            fullscreenControl: true,
            //streetViewControlOptions: {
            //    position: google.maps.ControlPosition.BOTTOM_LEFT,
            //}
        }

if I uncomment the streetViewControlOptions, then the map create crashes
as if the base doc is right
https://developers.google.com/maps/documentation/javascript/controls

@sdetweil
Copy link
Author

sdetweil commented Jan 4, 2025

i tried maptypecontrols too.. same crash

    mapTypeControlOptions: {
      style: google.maps.MapTypeControlStyle.HORIZONTAL_BAR,
      position: google.maps.ControlPosition.TOP_CENTER,
    },

copy paste out of the google maps javacript doc (which this links to )

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

1 participant