Do not close the ring when we use closePath()
This commit is contained in:
@@ -1210,8 +1210,10 @@ ol.render.canvas.PolygonReplay.prototype.drawFlatCoordinatess_ = function(flatCo
|
|||||||
for (i = 0, ii = ends.length; i < ii; ++i) {
|
for (i = 0, ii = ends.length; i < ii; ++i) {
|
||||||
var end = ends[i];
|
var end = ends[i];
|
||||||
var myBegin = this.coordinates.length;
|
var myBegin = this.coordinates.length;
|
||||||
var myEnd = this.appendFlatCoordinates(
|
var myEnd = this.appendFlatCoordinates(flatCoordinates, offset, end, stride,
|
||||||
flatCoordinates, offset, end, stride, true);
|
// Performance optimization: only close the ring when we do not have a
|
||||||
|
// stroke. Otherwise closePath() will take care of that.
|
||||||
|
!stroke);
|
||||||
var moveToLineToInstruction =
|
var moveToLineToInstruction =
|
||||||
[ol.render.canvas.Instruction.MOVE_TO_LINE_TO, myBegin, myEnd];
|
[ol.render.canvas.Instruction.MOVE_TO_LINE_TO, myBegin, myEnd];
|
||||||
this.instructions.push(moveToLineToInstruction);
|
this.instructions.push(moveToLineToInstruction);
|
||||||
|
|||||||
Reference in New Issue
Block a user