use precise international inchesPerMeter
test scalebar text
This commit is contained in:
1 parent
1b77409b63
commit
857f4e01ac
2 files changed
+50
-1
No files matched your search
@@ -468,7 +468,7 @@ class ScaleLine extends Control {
|
||||
);
|
||||
const dpi = this.dpi_ || DEFAULT_DPI;
|
||||
const mpu = this.viewState_.projection.getMetersPerUnit();
|
||||
const inchesPerMeter = 39.37;
|
||||
const inchesPerMeter = 1000 / 25.4;
|
||||
return parseFloat(resolution.toString()) * mpu * inchesPerMeter * dpi;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user