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

161
Views
Center Leaflet marker on popupopen PLUS x pixels up to the top edge of the map

With this lines I can center the leaflet marker on popupopen:

map.on('popupopen', function(e) {
    map.setView(e.target._popup._latlng, e.target._zoom);
});

So far, so good. But I want that the marker gets some more spaces to the top (for example +200px) of the map edge on popupopen. How can I add "x pixels vertical from the center" on popupopen?

Leaflet: Website

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!