Remove unneeded type cast

This commit is contained in:
Frederic Junod
2018-11-13 12:06:39 +01:00
parent 5eed22286b
commit 1e1dca5342
2 changed files with 4 additions and 4 deletions
+2 -2
View File
@@ -117,7 +117,7 @@ class CanvasVectorLayerRenderer extends CanvasLayerRenderer {
const clipExtent = layerState.extent;
const clipped = clipExtent !== undefined;
if (clipped) {
this.clip(context, frameState, /** @type {import("../../extent.js").Extent} */ (clipExtent));
this.clip(context, frameState, clipExtent);
}
const replayGroup = this.replayGroup_;
if (replayGroup && !replayGroup.isEmpty()) {
@@ -250,7 +250,7 @@ class CanvasVectorLayerRenderer extends CanvasLayerRenderer {
const clipExtent = layerState.extent;
const clipped = clipExtent !== undefined;
if (clipped) {
this.clip(context, frameState, /** @type {import("../../extent.js").Extent} */ (clipExtent));
this.clip(context, frameState, clipExtent);
}
if (this.declutterTree_) {