Use pano under 2 kph
parent
0db629815e
commit
7d792cf8a5
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue