commit cb70701df58dabb0d952cea339033350964da416
parent 373db2c5104b4dc2dedad20dd9b3e2cea0a0c183
Author: Sergej Orlov <wladimirych@gmail.com>
Date: Fri, 31 Mar 2017 01:43:29 +0300
[canvas markers] fixed label placement when iconScale != 1
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/lib/leaflet.layer.canvasMarkers/index.js b/src/lib/leaflet.layer.canvasMarkers/index.js
@@ -219,7 +219,7 @@ L.Layer.CanvasMarkers = L.GridLayer.extend({
drawSelectedMarkers: function(canvas, pixelExtents, markerJobs, pointsForLabels, zoom, limitLabelsToImage) {
const {tileN, tileW, tileS, tileE} = pixelExtents;
- const textHeight = this.options.labelFontSize;
+ const textHeight = this.options.labelFontSize * this.options.iconScale;
if (this._labelPositionsZoom !== zoom) {
this._labelPositionsZoom = zoom;
this.resetLabels();