Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

193
Views
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
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!