When passing mapId via options prop, google maps Javascript API complains with the following warning:
react_devtools_backend.js:2560 Google Maps JavaScript API: A Map's styles property cannot be set when a mapId is
present. When a mapId is present Map styles are controlled via the cloud console. Please see documentation at
https://developers.google.com/maps/documentation/javascript/styling#cloud_tooling
It seems as though because react-google-maps is passing it a styles object, which is not permitted when a cloud mapid is being used
When passing
mapId
viaoptions
prop, google maps Javascript API complains with the following warning:It seems as though because
react-google-maps
is passing it a styles object, which is not permitted when a cloud mapid is being usedhttps://codesandbox.io/s/quirky-moser-7ylxu?file=/src/App.js