commit 8ca0142eca500248c882c4ec4d260efd5723c619
parent 5a0ab741056229ed969d959dbdfe5a32102b34a1
Author: Sergej Orlov <wladimirych@gmail.com>
Date: Sat, 8 Jul 2017 02:32:32 +0300
[panoramas] set zoom=1 when changing google panorama
Diffstat:
1 file changed, 1 insertion(+), 0 deletions(-)
diff --git a/src/lib/leaflet.control.panoramas/lib/google/index.js b/src/lib/leaflet.control.panoramas/lib/google/index.js
@@ -50,6 +50,7 @@ const Viewer = L.Evented.extend({
showPano: function(data) {
this.panorama.setPosition(data.location.latLng);
+ this.panorama.setZoom(1);
},
onPanoramaChangeView: function() {