Estoy usando el módulo de nodo react-google-maps/api . Necesito configurar el valor de zoomControlOptions en TOP_LEFT pero terminé recibiendo este error Uncaught ReferenceError: google is not defined notdefined . Aquí está el enlace al repositorio.
Estoy recibiendo el error aquí
const options = { zoomControl: true, mapTypeControl: false, minZoom: 2, streetViewControl: false, zoomControlOptions: { position: google.maps.ControlPosition.TOP_LEFT, // google is undefined here }, };Por favor, ayúdame :)
Intente definir "opciones" dentro de su componente y agregue "ventana", como
position: window.google.maps.ControlPosition.TOP_LEFTAdemás, puedes poner solo un número.
BOTTOM: 11 BOTTOM_CENTER: 11 BOTTOM_LEFT: 10 BOTTOM_RIGHT: 12 CENTER: 13 LEFT: 5 LEFT_BOTTOM: 6 LEFT_CENTER: 4 LEFT_TOP: 5 RIGHT: 7 RIGHT_BOTTOM: 9 RIGHT_CENTER: 8 RIGHT_TOP: 7 TOP: 2 TOP_CENTER: 2 TOP_LEFT: 1 TOP_RIGHT: 3