commit 379c622bf117ed50d512d335de2263fa63e6fe0b
parent 10238486e206d8d6221a0d47b1aff5fc91f2567f
Author: Sergey Orlov <wladimirych@gmail.com>
Date: Wed, 24 Jun 2020 19:19:07 +0200
panoramas: disable google motion tracking to avoid interface freeze
Diffstat:
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/src/lib/leaflet.control.panoramas/lib/google/index.js b/src/lib/leaflet.control.panoramas/lib/google/index.js
@@ -36,7 +36,9 @@ const Viewer = L.Evented.extend({
this.google = google;
const panorama = this.panorama = new google.maps.StreetViewPanorama(container, {
enableCloseButton: true,
- imageDateControl: true
+ imageDateControl: true,
+ motionTracking: false,
+ motionTrackingControl: false,
}
);
panorama.addListener('position_changed', () => this.onPanoramaChangeView());