Opened 16 years ago
Closed 16 years ago
#2780 closed enhancement (fixed)
[PATCH] make hdop color more configurable
Reported by: | sbrunner | Owned by: | team |
---|---|---|---|
Priority: | major | Milestone: | |
Component: | Core | Version: | tested |
Keywords: | Cc: |
Description
Hello !
With my gps the color of trace using the hdop is almost green, than I purpose to make it more configurable with this patch:
Index: src/org/openstreetmap/josm/gui/layer/GpxLayer.java
===================================================================
--- src/org/openstreetmap/josm/gui/layer/GpxLayer.java (révision 1669)
+++ src/org/openstreetmap/josm/gui/layer/GpxLayer.java (copie de travail)
@@ -466,7 +466,7 @@
if (hdop < 0) {
hdop = 0;
}
- int hdoplvl = Math.round(hdop * 25);
+ int hdoplvl = Math.round(hdop * Main.pref.getInteger("hdop.factor", 25));
High hdop is bad, but high values in colors are green.
Therefore inverse the logic
int hdopcolor = 255 - (hdoplvl > 255 ? 255 : hdoplvl);
Attachments (1)
Change History (3)
by , 16 years ago
comment:1 by , 16 years ago
Summary: | make hdop color more configurable → [PATCH] make hdop color more configurable |
---|
Maybe a better default would also be useful.
patch