replace Math.log2 with log2 from ol/math

This commit is contained in:
mike-000
2020-04-30 19:07:20 +01:00
committed by GitHub
parent bce9730644
commit d3507e5c5e

View File

@@ -14,7 +14,7 @@ import {
intersects,
} from '../extent.js';
import {getTransform} from '../proj.js';
import {modulo} from '../math.js';
import {log2, modulo} from '../math.js';
/**
* Single triangle; consists of 3 source points and 3 target points.
@@ -169,7 +169,7 @@ class Triangulation {
? Math.max(
0,
Math.ceil(
Math.log2(
log2(
getArea(targetExtent) /
(opt_destinationResolution *
opt_destinationResolution *