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

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