Skip to content

Is there a way to move (or hide) UI elements like the map/satellite button, full-screen button? #3218

Closed Answered by zwehr
zwehr asked this question in Q&A
Discussion options

You must be logged in to vote

After some further research, I realized I can create an options object:

const options = {
    mapTypeControlOptions: {
      position: google.maps.ControlPosition.LEFT_BOTTOM,
    },
    fullscreenControl: false,
  }

And then set the 'options' prop equal to that object:

<GoogleMap
    options={options}
    zoom={10}
    center={center}
    mapContainerClassName="w-full h-screen"
>
</GoogleMap>

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by zwehr
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant