change loader check back to equal extents
This commit is contained in:
@@ -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;
|
||||||
|
|||||||
Reference in New Issue
Block a user