nakarte

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

commit 408f0081040bae4a052b6cbc4833b663ae71bb45
parent 641063de797c56b3ddb9bdbf8d89b0a9475b5b3c
Author: Igor Sidorov <igor.cug@gmail.com>
Date:   Thu, 24 May 2018 09:17:16 +0300

Fix typo

renamed magneticMerisiansdOn to magneticMeridiansOn in
leaflet.control.printPages component

Diffstat:
Msrc/lib/leaflet.control.printPages/control.js | 12++++++------
Msrc/lib/leaflet.control.printPages/form.html | 5++---
2 files changed, 8 insertions(+), 9 deletions(-)

diff --git a/src/lib/leaflet.control.printPages/control.js b/src/lib/leaflet.control.printPages/control.js @@ -83,7 +83,7 @@ L.Control.PrintPages = L.Control.extend({ this.pagesNum = ko.observable(0); this.pagesNumLabel = ko.pureComputed(this._pagesNumLabel, this); this.gridOn = ko.observable(false); - this.magneticMerisiansdOn = ko.observable(false); + this.magneticMeridiansOn = ko.observable(false); //hash state notifications this.scale.subscribe(this.notifyChange, this); @@ -91,7 +91,7 @@ L.Control.PrintPages = L.Control.extend({ this.resolution.subscribe(this.notifyChange, this); this.zoomLevel.subscribe(this.notifyChange, this); this.gridOn.subscribe(this.notifyChange, this); - this.magneticMerisiansdOn.subscribe(this.notifyChange, this); + this.magneticMeridiansOn.subscribe(this.notifyChange, this); }, onAdd: function(map) { @@ -212,7 +212,7 @@ L.Control.PrintPages = L.Control.extend({ if (this.gridOn()) { decorationLayers.push(new Grid()); } - if (this.magneticMerisiansdOn()) { + if (this.magneticMeridiansOn()) { decorationLayers.push(new MagneticMeridians()); } decorationLayers.push(new OverlayScale()); @@ -248,7 +248,7 @@ L.Control.PrintPages = L.Control.extend({ if (this.gridOn()) { decorationLayers.push(new Grid()); } - if (this.magneticMerisiansdOn()) { + if (this.magneticMeridiansOn()) { decorationLayers.push(new MagneticMeridians()); } decorationLayers.push(new OverlayScale()); @@ -420,7 +420,7 @@ L.Control.PrintPages = L.Control.extend({ state.push(page._rotated ? '1' : '0'); } let flags = - (this.magneticMerisiansdOn() ? 1 : 0) | + (this.magneticMeridiansOn() ? 1 : 0) | (this.gridOn() ? 2 : 0); state.push(flags); @@ -456,7 +456,7 @@ L.Control.PrintPages = L.Control.extend({ if (state.length) { const flags = parseInt(state.shift(), 10); if (flags >= 0 && flags <= 3) { - this.magneticMerisiansdOn(!!(flags & 1)); + this.magneticMeridiansOn(!!(flags & 1)); this.gridOn(!!(flags & 2)); } } diff --git a/src/lib/leaflet.control.printPages/form.html b/src/lib/leaflet.control.printPages/form.html @@ -67,7 +67,7 @@ </tr> <tr> <td colspan="2"> - <label><input type="checkbox" data-bind="checked: magneticMerisiansdOn"> Magnetic meridians</label> + <label><input type="checkbox" data-bind="checked: magneticMeridiansOn"> Magnetic meridians</label> <label><input type="checkbox" data-bind="checked: gridOn"> Kilometers grid</label> </td> </tr> @@ -100,4 +100,4 @@ </td></tr> </tbody> </table> -</div> -\ No newline at end of file +</div>