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

166
Views
How can I put a Leaflet-Marker over a Tooltip on hover?

I am trying to put a marker on top of everything else on an "onhover" event. It already works on each part separately. The hovered tooltip is over the others, and the same for the markers, but it does not work on tooltip over marker / marker over tooltip.

I am using angular 11 and leaflet 1.7

enter image description here

const marker = L.marker([lat, lng], { draggable: this.dragAndDrop, riseOnHover: true });         
marker.on('mouseover', (event) => {
            const marker = event.target;
            marker.getTooltip()._container.style.zIndex = 5000;

        });

        marker.on('mouseout', (event) => {
            const marker = event.target;
            marker.getTooltip()._container.style.zIndex = 4000;
          
        });
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!