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

78
Views
Leaflet transparent label with moving marker

I am migrating from Google map API to leaflet and stuck with this issue. I have some moving marker (showing aircraft positions). I need to display each aircraft speed, heading etc. along with aircraft marker. I am having two issues. a. Tooltip or popup does not display a transparent background b. With obscure background, when marker moves to new locations, labels leave a trail of previous labels.

I tried playing with CSS as follows but had no success.

var contentString =
"<style type='text/css'>" +
  "div {background: rgb(0, 151, 19); padding: 10px; text-align:justify; }" +
  "div.first2 { background: rgba(0, 151, 19, 0.0); marginLeft: -10; marginRight: 0; }" +
"</style>" +
"<div class='first2'><p>data</p></div>";
track.bindTooltip(contentString, {direction: 'right', permanent: true, className: 'first2'}).openTooltip();

But to no avail. Any help will be much appreciated.

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!