Rounds if decimals options = 0
This commit is contained in:
1 parent
b8117b3931
commit
d8dba61b0a
2 files changed
+13
-1
No files matched your search
@@ -190,7 +190,7 @@ ol.format.Feature.transformWithOptions = function(
|
||||
} else {
|
||||
transformed = geometry;
|
||||
}
|
||||
if (write && opt_options && opt_options.decimals) {
|
||||
if (write && opt_options && opt_options.decimals !== undefined) {
|
||||
var power = Math.pow(10, opt_options.decimals);
|
||||
// if decimals option on write, round each coordinate appropriately
|
||||
/**
|
||||
|
||||
Reference in new issue
Block a user