New fontOpacity option for vector feature style. r=pgiraud (closes #2438)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9978 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
@@ -365,7 +365,7 @@ OpenLayers.Renderer.Canvas = OpenLayers.Class(OpenLayers.Renderer, {
|
||||
|
||||
this.setCanvasStyle("reset");
|
||||
this.canvas.fillStyle = style.fontColor;
|
||||
this.canvas.globalAlpha = 1;
|
||||
this.canvas.globalAlpha = style.fontOpacity || 1.0;
|
||||
var fontStyle = style.fontWeight + " " + style.fontSize + " " + style.fontFamily;
|
||||
if (this.canvas.fillText) {
|
||||
// HTML5
|
||||
|
||||
Reference in New Issue
Block a user