Use pano under 2 kph

master
Keith Irwin 2017-09-17 00:07:27 +00:00
parent 0db629815e
commit 7d792cf8a5
No known key found for this signature in database
GPG Key ID: 378933C743E2BBC0
1 changed files with 8 additions and 8 deletions

View File

@ -245,7 +245,7 @@ loadGoogleMapsAPI({ key:mapKey })
function updateStreetView(loc) { function updateStreetView(loc) {
// Moving (show image) // Moving (show image)
if (loc.spd>1) { if (loc.spd>2) {
// Create image // Create image
const imgElem = document.getElementById('panoImg'); const imgElem = document.getElementById('panoImg');
@ -274,13 +274,13 @@ loadGoogleMapsAPI({ key:mapKey })
// Create panorama // Create panorama
$('#pano').empty(); $('#pano').empty();
pano = new googlemaps.StreetViewPanorama(panoElem, { pano = new googlemaps.StreetViewPanorama(panoElem, {
panControl: false, panControl: false,
zoomControl: false, zoomControl: false,
addressControl: false, addressControl: false,
linksControl: false, linksControl: false,
motionTracking: false, motionTracking: false,
motionTrackingControl: false motionTrackingControl: false
}); });
} }
// Set panorama // Set panorama