nakarte

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

commit cda4703df61623e15e59ddb6cb6fd2a2c0739fe9
parent c5081b1b757779a30c5d3ef30080259cdb7251f9
Author: Sergej Orlov <wladimirych@gmail.com>
Date:   Tue,  7 Mar 2017 11:24:05 +0300

[panoramas] fixed storing panorama state to hash for safari

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

diff --git a/src/lib/leaflet.control.panoramas/index.js b/src/lib/leaflet.control.panoramas/index.js @@ -221,7 +221,8 @@ L.Control.Panoramas.include({ state.push(this.panoramaPosition.lng.toFixed(5)); state.push(this.panoramaAngle.heading.toFixed(1)); state.push(this.panoramaAngle.pitch.toFixed(1)); - state.push(this.panoramaAngle.zoom.toFixed(1)); + // in safari zoom is undefined + state.push((this.panoramaAngle.zoom || 0).toFixed(1)); } return state; },