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

81
Visualizações
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
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