From 4b2fb389548b6abd5da137122111daa2d70c5082 Mon Sep 17 00:00:00 2001 From: GaborFarkas Date: Fri, 8 Jul 2016 20:45:42 +0200 Subject: [PATCH] Fix preparation of multipolygons with holes. --- src/ol/render/webgl/imagereplay/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ol/render/webgl/imagereplay/index.js b/src/ol/render/webgl/imagereplay/index.js index d0c99562c6..497d5d7fb2 100644 --- a/src/ol/render/webgl/imagereplay/index.js +++ b/src/ol/render/webgl/imagereplay/index.js @@ -1745,7 +1745,7 @@ ol.render.webgl.PolygonReplay.prototype.drawMultiPolygon = function(multiPolygon var holeFlatCoords; for (j = 1, jj = linearRings.length; j < jj; ++j) { holeIndices.push(flatCoordinates.length / 2); - holeFlatCoords = linearRings[i].getFlatCoordinates(); + holeFlatCoords = linearRings[j].getFlatCoordinates(); holeFlatCoords = ol.geom.flat.transform.translate(holeFlatCoords, 0, holeFlatCoords.length, stride, -this.origin_[0], -this.origin_[1]); ol.array.extend(flatCoordinates, holeFlatCoords);