diff --git a/static/js/map.js b/static/js/map.js index a8096bc..515d3a1 100644 --- a/static/js/map.js +++ b/static/js/map.js @@ -201,9 +201,7 @@ function getAltitude(loc,elev,cb){ function getStreetViewData(loc,rad,cb) { if (!sv) { var sv=new google.maps.StreetViewService(); } sv.getPanorama({location:{lat:loc.lat,lng:loc.lon},radius:rad},function(data,status){ - if (status===google.maps.StreetViewStatus.ZERO_RESULTS){ - getStreetViewData(loc,rad*2,cb); - } else if (status!==google.maps.StreetViewStatus.OK){ console.error(new Error('⛔️ Street view not available:',status).message); } + if (status!==google.maps.StreetViewStatus.OK){ console.error(new Error('⛔️ Street view not available:',status).message); } else { cb(data); } }); }