Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

163
Vistas
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
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda