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

263
Vistas
LeafletMap: Positioning the markers popup in vue2 application

I am working with leafletMap using Vue2 application, I want to position my markers in different position on my desktop view. I have an idea but not sure if it will work, but thinking like, if I add min-zoom and max-zoom to my map application and then need to write some logic for positioning, but don't know exact how to implement it. Right now when I clicked then the popup is always on the top of the marker ( see below):

enter image description here

But I want the marker to be position on different direction depending on my markers. So If My marker is on right side of the map then the markers should popup at right corner and if marker is on Left side then Popup should open in left Corner. and if marker is too close of the Top map then the popup should open beneath/under the marker ( Similar to the image below):

enter image description here

And if my Marker is on the center the the popup should open above the MArker, As image below:

enter image description here

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