Jump to content

[SOLVED] How to hide streetview when not available with v3?


Rick Davis

Recommended Posts

I'm using the latest geomaps addon. I'd like to hide the streetview container on my detail page when there is not streetview available.

 

In the prior version, I used this code in the geomaps.js-

 

    function showPanoData(panoData) {
     if (panoData.code != 200) {
       jQuery('#'+mapCanvas_+'_streetview').css('display','none');
       return;
     } else {
         jQuery('#gm_streetview_msg').remove();
     }
     myPano_.setLocationAndPOV(panoData.location.latlng);
   }

 

What is the best way to accomplish the same result with the new version of geomaps?

Link to comment
×
×
  • Create New...