Merge pull request #4144 from elemoine/feature-animation
Set context.fillStyle to a string
This commit is contained in:
@@ -72,8 +72,7 @@ function flash(feature) {
|
|||||||
snapToPixel: false,
|
snapToPixel: false,
|
||||||
stroke: new ol.style.Stroke({
|
stroke: new ol.style.Stroke({
|
||||||
color: 'rgba(255, 0, 0, ' + opacity + ')',
|
color: 'rgba(255, 0, 0, ' + opacity + ')',
|
||||||
width: 1,
|
width: 1
|
||||||
opacity: opacity
|
|
||||||
})
|
})
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
@@ -405,7 +405,7 @@ ol.style.Circle.prototype.drawHitDetectionCanvas_ =
|
|||||||
renderOptions.size / 2, renderOptions.size / 2,
|
renderOptions.size / 2, renderOptions.size / 2,
|
||||||
this.radius_, 0, 2 * Math.PI, true);
|
this.radius_, 0, 2 * Math.PI, true);
|
||||||
|
|
||||||
context.fillStyle = ol.render.canvas.defaultFillStyle;
|
context.fillStyle = ol.color.asString(ol.render.canvas.defaultFillStyle);
|
||||||
context.fill();
|
context.fill();
|
||||||
if (!goog.isNull(this.stroke_)) {
|
if (!goog.isNull(this.stroke_)) {
|
||||||
context.strokeStyle = renderOptions.strokeStyle;
|
context.strokeStyle = renderOptions.strokeStyle;
|
||||||
|
|||||||
Reference in New Issue
Block a user