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

147
Visualizações
Unable to Draw Radius of Greater than 6000 KM

mapbox-gl-js version: Latest

browser: All Browsers

Steps to Trigger Behavior

  1. Open this codesandbox https://codesandbox.io/embed/flamboyant-smoke-0v546?codemirror=1&fontsize=14&hidenavigation=1&theme=dark
  2. Set the radius beyond 6000 km. e.g. 11,000 in my case.
  3. set the zoom label to 2.

Link to Demonstration

Code Sandbox Link - https://codesandbox.io/embed/flamboyant-smoke-0v546?codemirror=1&fontsize=14&hidenavigation=1&theme=dark

Radius Screen Shot - https://prnt.sc/1yf0a0x

Expected Behavior

  • A Perfect Radius

Actual Behavior

  • Not Working Properly.
about 4 years ago · Juan Pablo Isaza
1 Respostas
Responde à pergunta

0

I'm not exactly sure why you expected a "perfect radius" (I assume you mean a perfect circle) here. The distance from the equator to the north pole is only 10,000km. So a circle with a radius of 11,000km, even if it was situated on the equator, would extend past both the north and south poles. Your circle would actually be getting smaller again (because the furthest north and south points would be approaching each other on the far side of the planet). A similar thing is happening east and west: the eastern and western points are starting to get closer to each other on the far side.

As for the specific issues you're seeing, the Web Mercator projection (which Mapbox uses) is only defined to around 85 degrees north and south, so your circle would be out of bounds for a Mapbox map. That may be the cause of it.

TL,DR: The Earth is not big enough for what you're trying to do.

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