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

159
Views
Cluster Drawing doesn't take all points on map

I am trying to draw clusters -yellow circles- on a set of points -red dots- on the map

After getting the cluster centroid I calculated the circle radius by getting the furthest point from the cluster and I calculate the distance Euclidean distance and I am giving it the lat/long of the 2 points -the cluster centroid & the furthest point-

enter image description here

Now the problem I am having is this.

the distance between the 2 points does not give me the correct radius because when the zoom changes I should multiply with a factor or I should get the distance in KM or Miles and calculate how many pixels correspond to that distance and I am not sure How to do that?

The Information that I have. That might help the equation are:

ZoomLevel: Integer the current zoom scale [1, ....]

ZoomLevelDistanceRatio: Map{key: ZoomLevel, value: scale} scale is distance ex: 1000km, 200m

clusterCentroind: [lat: number, long: number] furthestPoint: [lat: number, long: number]

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!