commit 89af0ea289f06845c1abd89eadaf984c339f387d
parent f10acf472bef5b75dd599c51c72fecbf17b539b9
Author: Sergej Orlov <wladimirych@gmail.com>
Date: Tue, 28 Mar 2017 11:28:58 +0300
[canvas markers] width of halo for labels depends on print resolution
Diffstat:
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/lib/leaflet.layer.canvasMarkers/index.js b/src/lib/leaflet.layer.canvasMarkers/index.js
@@ -282,8 +282,8 @@ L.Layer.CanvasMarkers = L.GridLayer.extend({
ctx.shadowColor = '#fff';
ctx.strokeStyle = '#fff';
ctx.fillStyle = '#000';
- ctx.lineWidth = 1;
- ctx.shadowBlur = 2;
+ ctx.lineWidth = 1.2 * this.options.iconScale;
+ ctx.shadowBlur = 1 * this.options.iconScale;
ctx.strokeText(job.label, x, y + textHeight);
ctx.shadowBlur = 0;
ctx.fillText(job.label, x, y + textHeight);