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

146
Views
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 answers
Answer question

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 Report
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!