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

311
Visualizações
How to keep my marker on Focus until I close the popup or move the mouse cursor outside the marker (on the map)

I am trying to keep the focus on my marker until I close the popup or move my mouse cursor outside the popup or on the map. Right now when I clicked on my marker it turns black but when I take away my mouse it turn's back to green quickly. Which I don't want. I want that My focus or click should be there for long tills I click on another element like popup or outside. have checked and googled but cannot find the answer I am looking for. Will appreciate all help I can get. I am using leaflet Map ( vue2 leafletmap) and vue js. Thanks in advance!

enter image description here

// But as soon as I move the mouse then it turns green, I want the blackness/focus to stay until I clicked and close the popup. How can I achieve this?

enter image description here

//just using simple CSS for now: 

.marker-circle-green {
  color:white;
  background-color: green;
}

.marker-circle-green:active,
.marker-circle-green:focus-visible {
  opacity: 0.7;
  background-color: black;
}
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