change loader check back to equal extents

This commit is contained in:
mike-000
2020-03-31 16:55:23 +01:00
committed by GitHub
parent 149ca7efad
commit 929b9f4068

View File

@@ -18,6 +18,7 @@ import {
applyTransform,
containsCoordinate,
containsExtent,
equals,
approximatelyEquals,
getCenter,
getHeight,
@@ -511,7 +512,7 @@ class Graticule extends VectorLayer {
const layerExtent = this.getExtent() || [-Infinity, -Infinity, Infinity, Infinity];
const renderExtent = getIntersection(layerExtent, extent);
if (this.renderedExtent_ && approximatelyEquals(this.renderedExtent_, renderExtent, resolution)) {
if (this.renderedExtent_ && equals(this.renderedExtent_, renderExtent, resolution)) {
return;
}
this.renderedExtent_ = renderExtent;