react-google-maps-api
react-google-maps-api copied to clipboard
Fullscreen button only works correctly with the default position
Issue template
If you want to ask question, ask it in Github Discussions, Spectrum.chat or Slack channel
Please do not post unformatted code into issues, and please do not ask questions. Only real issues, PR or feature requests allowed. Minimal reproduction in codesandbox.io is must have.
Please provide an explanation
It seems if you pass a new position for the fullscreen control (besides the default position), once it comes out of fullscreen the first time, it will no longer let you go back to fullscreen and the fullscreen button shows the wrong state.
Your Environment
os: windows
node --version
react version
webpack version
@babel version
@react-google-maps/api version
How is it behave?
If you pass a value of
fullscreenControlOptions:{position:google.maps.ControlPosition.BOTTOM_RIGHT}
the fullscreen button works only 1 time, after you leave fullscreen, you can't click the button again.
How should it behave correctly?
The fullscreen button should continue to work after the first time if you pass a value of
fullscreenControlOptions:{position:google.maps.ControlPosition.BOTTOM_RIGHT}
... currently it gets stuck after you exit fullscreen and the fullscreen icon is in the wrong state... again just to reiterate... it works 100% correctly as it should if you do NOT pass a "fullscreenControlOptions". It only messes up once you pass a value.