/// <summary> /// Computes scaled X,Y coordinates /// </summary> /// <param name="points"></param> /// <returns></returns> private List <HeatmapPoint> GetCalculatedPoints(List <HeatmapPoint> points) { List <HeatmapPoint> heatmapPointsCalculated = new List <HeatmapPoint>(); // Scale x,y to overview image, we remove duplicate points before foreach (HeatmapPoint point in points.Distinct(new HeatmapPointComparer()).ToList()) { // Calcul to resolution float x = _mapService.CalculatePointToResolutionX(point.X); float y = _mapService.CalculatePointToResolutionY(point.Y); point.X = x; point.Y = y; heatmapPointsCalculated.Add(point); } return(heatmapPointsCalculated); }