Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

230
Visualizações
@react-google-maps/api <GoogleMap> onClick not working

I'm using @react-google-maps/api library and everything in package has been working correctly.
Now I just noticed that component's onClick event has lost its functionality and in my website the functions attached to it are not working. I don't think I have changed any code related to onClick functioanlity.

This is easily seen as I have also used with clickable markers inside and when hovering mouse over those markers it remains as "drag-hand" and doesn't change to "pointing-hand".
Also I have marker with title prop. Now if I hover mouse over it the title won't appear.

I tried to test this by normal console loggin, but console remains empty.
Following picture shows the basic component with onClick event and that onClick event does not function.

enter image description here

I might be missing something but this just appeared out of nowhere to functioning application and I'm puzzled about this.

I'm using: "@react-google-maps/api": "^2.2.0",
and imports are basic:

import {
  GoogleMap,
  Marker,
  Polygon,
  useJsApiLoader,
} from '@react-google-maps/api';
about 4 years ago · Juan Pablo Isaza
1 Respostas
Responde à pergunta

0

It seems Google has broken something on their end. I'm experiencing the exact same problem in our application. There's an invisible overlay div floating around that blocks access to the content underneath. I temporarily fixed it in CSS by unsetting the height of the mysterious overlay div.

.gm-style-moc {
    height: unset !important;
}

I guess Google will also fix this on their end soon.

about 4 years ago · Juan Pablo Isaza Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda