Jump to content

[SOLVED] Hide DIV when no Streetview available


Rick Davis

Recommended Posts

On my listing page, I've succesfully moved the maps to the sidebar. I have them stacked with the main map on top and streetview on the bottom. I'd like to hide the <div id="gm_map_detail_streetview"... when the result is "Street view not available for this address."

 

I've been playing with this in the map_detail.thtml page-

 

     if (panoData.code != 200) {
       jQuery('#gm_map_detail_streetview').css('display','none');
  }

 

I think I'm close but I need some more direction.

 

Here is an example of a page with NO streetview:

http://www.eatlocalgrown.com.php5-25.dfw1-2.websitetestlink.com/farms/3009-dons-eggs

 

Here is a page with the streetview:

http://www.eatlocalgrown.com.php5-25.dfw1-2.websitetestlink.com/farms/989-3-boys-farm

 

Thanks!

 

 

 

Link to comment
×
×
  • Create New...