nakarte

Source code of https://map.sikmir.ru (fork)
git clone git://git.sikmir.ru/nakarte
Log | Files | Refs | LICENSE

commit 864509c51cebe627d008f705d00c9097f51ac216
parent 3d2c61e0603a264e65e661293d74362ebdd7a2e8
Author: Sergej Orlov <wladimirych@gmail.com>
Date:   Sun,  5 Jan 2020 17:55:22 +0100

fix lint errors (no-floating-decimal)

Diffstat:
Msrc/lib/leaflet.control.elevation-profile/index.js | 4++--
Msrc/lib/leaflet.layer.canvasMarkers/index.js | 2+-
2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/lib/leaflet.control.elevation-profile/index.js b/src/lib/leaflet.control.elevation-profile/index.js @@ -279,7 +279,7 @@ const ElevationProfile = L.Class.extend({ this.polyline.on('mousemove', this.onLineMouseMove, this); this.polyline.on('mouseover', this.onLineMouseEnter, this); this.polyline.on('mouseout', this.onLineMouseLeave, this); - this.polyLineSelection = L.polyline([], {weight: 20, opacity: .5, color: 'yellow', lineCap: 'butt'}); + this.polyLineSelection = L.polyline([], {weight: 20, opacity: 0.5, color: 'yellow', lineCap: 'butt'}); return this; }, @@ -851,7 +851,7 @@ const ElevationProfile = L.Class.extend({ if (nextDist < minDist + nextSampleDist) { di = (minDist - nextDist) / 2 / nextSampleDist + 1 / 2; } else { - di = .001; + di = 0.001; } } else if (nearestInd === this.samples.length - 1) { if (prevDist < minDist + prevSampleDist) { diff --git a/src/lib/leaflet.layer.canvasMarkers/index.js b/src/lib/leaflet.layer.canvasMarkers/index.js @@ -127,7 +127,7 @@ L.Layer.CanvasMarkers = L.GridLayer.extend({ xPositions = [iconCenter[0] + iconSize[0] / 2 + 2, iconCenter[0] - iconSize[0] / 2 - textWidth - 2], yPositions = [ iconCenter[1] - textHeight / 2 + verticalPadding, - iconCenter[1] - textHeight * .75 - iconSize[1] / 4 + verticalPadding, + iconCenter[1] - textHeight * 0.75 - iconSize[1] / 4 + verticalPadding, iconCenter[1] - textHeight / 4 + iconSize[1] / 4 + verticalPadding, iconCenter[1] - textHeight - iconSize[1] / 2 + verticalPadding, iconCenter[1] + iconSize[1] / 2 + verticalPadding