nakarte

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

commit 6bf03eefdd7a09ca844054b7f7f23ff673315062
parent 8aaa0bc72a76b43f23d9c22d0e876d2e9dea8e10
Author: Sergej Orlov <wladimirych@gmail.com>
Date:   Thu,  7 Jun 2018 23:34:46 +0300

[geolocation] fixed storing location to localStorage

Diffstat:
Msrc/lib/leaflet.control.locate/index.js | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/lib/leaflet.control.locate/index.js b/src/lib/leaflet.control.locate/index.js @@ -189,7 +189,7 @@ const LocateControl = L.Control.extend({ }, _storePositionToLocalStorage: function(pos) { - const coords = {lat: pos.coords.latitude, lon: pos.coords.latitude}; + const coords = {lat: pos.coords.latitude, lon: pos.coords.longitude}; localStorage.setItem(LOCALSTORAGE_POSITION, JSON.stringify(coords)); },