Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

265
Visualizações
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 à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda