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

114
Views
How can I use external buttons instead of the default Layers Control?

Instead of Leaflet default Layers Control with checkbox, I want to use an <a> tag, when I click on it, it shows all associated layers to that button.

I have eight <a> with class and tag, so if I press the button "all", it shows all markers, if I press the button "clubhouses" it shows only clubhouses markers, etc.

Here is my HTML for the buttons

<div class="buttons">
    <div class="buttonsTop">
        <a href="" class="all">ALL</a>
        <a href="" class="clubhouses">CLUBHOUSES</a>
        <a href="" class="bunkers">BUNKERS</a>
        <a href="" class="hangars">HANGARS</a>
    </div>
    <div class="buttonsBottom">
        <a href="" class="facilities">FACILITIES</a>
        <a href="" class="nightclub">NIGHTCLUBS</a>
        <a href="" class="arcades">ARCADES</a>
        <a href="" class="arcades">AUTOSHOPS</a>
    </div>
</div>
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!