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

194
Visualizações
Cannot access class method in Leaflet marker popup html content

I am working on a map web application using the Leaflet library. I have a class (ReleafAssets) with a method for rendering markers on a map.

Map View

Markers Class Code snippet

Markers Class Code snippet cont'd

What i want to do is to be able to implement the ability to delete each marker upon clicking them. In the html template, i have binded the test function to the onclick event on the delete icon but i can't seem to access the function from inside this class method for some reason.

When i click the delete icon on the marker popup, i get the error below:

Error message

Please, how can i fix this issue in order to be able to access the test method onclick in the marker popup html. Thanks in anticipation.

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