replace Math.log2 with log2 from ol/math
This commit is contained in:
@@ -14,7 +14,7 @@ import {
|
|||||||
intersects,
|
intersects,
|
||||||
} from '../extent.js';
|
} from '../extent.js';
|
||||||
import {getTransform} from '../proj.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.
|
* Single triangle; consists of 3 source points and 3 target points.
|
||||||
@@ -169,7 +169,7 @@ class Triangulation {
|
|||||||
? Math.max(
|
? Math.max(
|
||||||
0,
|
0,
|
||||||
Math.ceil(
|
Math.ceil(
|
||||||
Math.log2(
|
log2(
|
||||||
getArea(targetExtent) /
|
getArea(targetExtent) /
|
||||||
(opt_destinationResolution *
|
(opt_destinationResolution *
|
||||||
opt_destinationResolution *
|
opt_destinationResolution *
|
||||||
|
|||||||
Reference in New Issue
Block a user