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

309
Vistas
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 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