Declare feature in the correct scope
This commit is contained in:
@@ -580,10 +580,11 @@ _ol_render_canvas_Replay_.prototype.replay_ = function(
|
|||||||
// balance between batch size and number of fill/stroke instructions.
|
// balance between batch size and number of fill/stroke instructions.
|
||||||
const batchSize =
|
const batchSize =
|
||||||
this.instructions != instructions || this.overlaps ? 0 : 200;
|
this.instructions != instructions || this.overlaps ? 0 : 200;
|
||||||
|
let /** @type {ol.Feature|ol.render.Feature} */ feature;
|
||||||
|
let x, y;
|
||||||
while (i < ii) {
|
while (i < ii) {
|
||||||
const instruction = instructions[i];
|
const instruction = instructions[i];
|
||||||
const type = /** @type {ol.render.canvas.Instruction} */ (instruction[0]);
|
const type = /** @type {ol.render.canvas.Instruction} */ (instruction[0]);
|
||||||
let /** @type {ol.Feature|ol.render.Feature} */ feature, x, y;
|
|
||||||
switch (type) {
|
switch (type) {
|
||||||
case _ol_render_canvas_Instruction_.BEGIN_GEOMETRY:
|
case _ol_render_canvas_Instruction_.BEGIN_GEOMETRY:
|
||||||
feature = /** @type {ol.Feature|ol.render.Feature} */ (instruction[1]);
|
feature = /** @type {ol.Feature|ol.render.Feature} */ (instruction[1]);
|
||||||
|
|||||||
Reference in New Issue
Block a user