Merge pull request #4242 from marcjansen/fix-drawtext-regression
Fix a drawText regression introduced with 31a68e2
This commit is contained in:
@@ -1560,10 +1560,8 @@ goog.inherits(ol.render.canvas.TextReplay, ol.render.canvas.Replay);
|
|||||||
*/
|
*/
|
||||||
ol.render.canvas.TextReplay.prototype.drawText =
|
ol.render.canvas.TextReplay.prototype.drawText =
|
||||||
function(flatCoordinates, offset, end, stride, geometry, feature) {
|
function(flatCoordinates, offset, end, stride, geometry, feature) {
|
||||||
if (this.text_ === '' ||
|
if (this.text_ === '' || !this.textState_ ||
|
||||||
!this.textState_ ||
|
(!this.textFillState_ && !this.textStrokeState_)) {
|
||||||
(this.textFillState_ &&
|
|
||||||
!this.textStrokeState_)) {
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (this.textFillState_) {
|
if (this.textFillState_) {
|
||||||
|
|||||||
Reference in New Issue
Block a user