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

154
Visualizações
Get geospatial coordinates a path projected with D3.js

I have successfully project an SVG world map and some other shapes onto a sphere using D3.js.

I can easily map points to the sphere, but I don't yet have the other way around. From a mouse event, I'd like to derive the lat/lng or just the general angles at the pointer.

Before I go down the math rabbit hole, is there something built into D3.js to handle the inverted mapping? Or an existing solution otherwise?

about 4 years ago · Juan Pablo Isaza
1 Respostas
Responde à pergunta

0

Assuming you are using this library, you could try the invert() method

For newer versions, as of v6 at least:

//in click or other mouse event handler
const coords = projection.invert(d3.pointer(event, this));
about 4 years ago · Juan Pablo Isaza Relatório
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