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