Move gradient and pattern fills with the view

This commit is contained in:
Andreas Hocevar
2016-10-13 09:27:55 +02:00
parent 043a8ab1db
commit f655f6740e
4 changed files with 67 additions and 49 deletions

View File

@@ -344,7 +344,7 @@ ol.render.canvas.PolygonReplay.prototype.setFillStrokeStyles_ = function() {
var miterLimit = state.miterLimit;
if (fillStyle !== undefined && state.currentFillStyle != fillStyle) {
this.instructions.push(
[ol.render.canvas.Instruction.SET_FILL_STYLE, fillStyle]);
[ol.render.canvas.Instruction.SET_FILL_STYLE, fillStyle, typeof fillStyle != 'string']);
state.currentFillStyle = state.fillStyle;
}
if (strokeStyle !== undefined) {