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

130
Visualizações
BottomUpModal not showing on display

I am trying to write an app, that uses google maps via Maps Javascript API, which continuously watches the geoLocation. The app uses the initMap() function which loads the Google map.
Inside initMap() I called a function to initialise an interval which calls getCurrentPostion which then update the marker (geoLocation) on the map every says 12 seconds.

Now, I want to call a bottomUpModal when I clicked the marker.

My problem is that the bottomUpModal (which is a div that is normally not shown on screens) does not appear.

I am calling the bottomUpModal with the following codes:

marker.addListener( "click", () => { 
    loadBottomUpModal( marker.getLabel() )
});

which is inside another function called addMarker().

When I call the bottomUpModal from initMap, it does appear on screen but when called from functions that are deep inside other functions it does not appear.

I can see from the console log( "modal called" ) inside the loadBottomUpModal( ) that the function has executed, but no modal on display.

Can someone point me in the right direction.

about 4 years ago · Juan Pablo Isaza
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