Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

305
Views
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
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!