better alignment
This commit is contained in:
@@ -566,7 +566,7 @@ OpenLayers.Renderer.Canvas = OpenLayers.Class(OpenLayers.Renderer, {
|
|||||||
this.canvas.save();
|
this.canvas.save();
|
||||||
this.canvas.strokeStyle = style.labelOutlineColor;
|
this.canvas.strokeStyle = style.labelOutlineColor;
|
||||||
this.canvas.lineWidth = style.labelOutlineWidth;
|
this.canvas.lineWidth = style.labelOutlineWidth;
|
||||||
this.canvas.strokeText(labelRows[i], pt[0], pt[1] + (lineHeight*i));
|
this.canvas.strokeText(labelRows[i], pt[0], pt[1] + (lineHeight*i) + 1);
|
||||||
this.canvas.restore();
|
this.canvas.restore();
|
||||||
}
|
}
|
||||||
this.canvas.fillText(labelRows[i], pt[0], pt[1] + (lineHeight*i));
|
this.canvas.fillText(labelRows[i], pt[0], pt[1] + (lineHeight*i));
|
||||||
|
|||||||
Reference in New Issue
Block a user