Changed some display values
This commit is contained in:
parent
d35aab9c39
commit
08ebc9a26b
@ -34,15 +34,15 @@ public class Renderer
|
|||||||
|
|
||||||
Color start = Color.FromArgb(0, 0, 255);
|
Color start = Color.FromArgb(0, 0, 255);
|
||||||
Color center = Color.FromArgb(255, 255, 0);
|
Color center = Color.FromArgb(255, 255, 0);
|
||||||
Color end = Color.FromArgb(255, 0, 0);
|
Color end = Color.FromArgb(0, 255, 0);
|
||||||
|
|
||||||
foreach (KeyValuePair<OsmNode, double> kv in gScoreDict)
|
foreach (KeyValuePair<OsmNode, double> kv in gScoreDict)
|
||||||
{
|
{
|
||||||
double percentage = kv.Value / maxWeight;
|
double percentage = (kv.Value - minWeight) / (maxWeight - minWeight);
|
||||||
Brush b = new SolidBrush(GradientPick(percentage, start, center, end));
|
Brush b = new SolidBrush(GradientPick(percentage, start, center, end));
|
||||||
float x = (kv.Key.coordinates.longitude - minLon) * scaleFactor;
|
float x = (kv.Key.coordinates.longitude - minLon) * scaleFactor;
|
||||||
float y = (maxLat - kv.Key.coordinates.latitude) * scaleFactor;
|
float y = (maxLat - kv.Key.coordinates.latitude) * scaleFactor;
|
||||||
g.FillEllipse(b, x, y, 4, 4);
|
g.FillEllipse(b, x, y, 2, 2);
|
||||||
}
|
}
|
||||||
|
|
||||||
Pen p = new Pen(Color.Red, 2);
|
Pen p = new Pen(Color.Red, 2);
|
||||||
|
Reference in New Issue
Block a user